Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错 #170

Open
hepengwei opened this issue Jan 15, 2024 · 3 comments
Open

报错 #170

hepengwei opened this issue Jan 15, 2024 · 3 comments

Comments

@hepengwei
Copy link

代码如下:
import eCommerceDesign1 from "images/eCommerceDesign1.png";

运行报错:
{E4C984D5-17FC-4ad2-9577-296EBD5C62D0}

@hepengwei
Copy link
Author

代码如下:

import eCommerceDesign1 from "images/eCommerceDesign1.png";

<PhotoProvider>
         <PhotoView src={eCommerceDesign1} key={`${eCommerceDesign1}_1`}>
                  <img src={eCommerceDesign1} alt="" />
         </PhotoView>
          <PhotoView src={eCommerceDesign1} key={`${eCommerceDesign1}_2`}>
                  <img src={eCommerceDesign1} alt="" />
          </PhotoView>
         <PhotoView src={eCommerceDesign1} key={`${eCommerceDesign1}_3`}>
                  <img src={eCommerceDesign1} alt="" />
         </PhotoView>
</PhotoProvider>

@MinJieLiu
Copy link
Owner

context 有问题,你是怎样导入的

@hepengwei
Copy link
Author

context 有问题,你是怎样导入的

import { PhotoProvider, PhotoView } from "react-photo-view";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants