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

After Gatsby build react-image-magnify wont work #91

Open
ghost opened this issue Aug 19, 2020 · 7 comments
Open

After Gatsby build react-image-magnify wont work #91

ghost opened this issue Aug 19, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Aug 19, 2020

Locally with npm start I have a working app and react magnify is working fine, but when I run Gatsby build react-magnify feature is not working anymore.
Sorry but I have only small amount of info on this issue, only thing I see is that in console I get "TypeError: Cannot convert undefined or null to object"
Does anyone have same issue with react-image-magnify and Gatsby build

@virissimo
Copy link

I'm having this same issue. Running with gatsby develop command, it works fine. But, when I run with gatsby build and gatsby serve, I get this error:

image

React: 16.10.2
Gatsby: 2.23.22
react-image-magnify: 2.7.4

@Coriou
Copy link

Coriou commented Sep 7, 2020

There's a bug in ethanselzer/react-cursor-position which is fixed in ethanselzer/react-cursor-position#36

Just need @ethanselzer to merge & publish both packages again

@ruben-aguilar
Copy link

Any update on this?

@theskillwithin
Copy link

any news?

@Coriou
Copy link

Coriou commented Oct 31, 2020

I've personally given up waiting on the merge and I don't feel like maintaining the two forks required to publish a fixed version of this package.

I have however found a nice alternative in react-inner-image-zoom.

@MilosMladenovicWork
Copy link

Hi guys, I forked package with fix I found and you can get it by typing npm i @milosmladenovicwork/react-image-magnify and using it instead of react-image-magnify. I was having the same problem with page crashing after build. All the best 🙌

@wynnethepooh
Copy link

Thank you @MilosMladenovicWork!! I also had this problem and my gatsby application works now :D

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

6 participants