Open ghost opened 4 years ago
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:
React: 16.10.2 Gatsby: 2.23.22 react-image-magnify: 2.7.4
There's a bug in ethanselzer/react-cursor-position which is fixed in https://github.com/ethanselzer/react-cursor-position/pull/36
Just need @ethanselzer to merge & publish both packages again
Any update on this?
any news?
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.
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 🙌
Thank you @MilosMladenovicWork!! I also had this problem and my gatsby application works now :D
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