react-globe.gl icon indicating copy to clipboard operation
react-globe.gl copied to clipboard

Globe doesn't show on Next JS production mode

Open Xathoms opened this issue 3 years ago • 4 comments

I don't know why, the globe work perfectly on development mode, but when i try to reproduce that on production mode it doesn't appear.

This is the Link for the entire project on codesandbox.

GlobeProject [](url)

Xathoms avatar Sep 12 '22 06:09 Xathoms

I'm having similar issues. I'm using next/dynamic and see everything just fine in dev. Once I build for production I don't see anything, no errors in the console either

codegangsta avatar Sep 16 '22 21:09 codegangsta

Found my issue. I had swcMinify: true in my next project, removing it fixed whatever issues I had with production builds

codegangsta avatar Sep 16 '22 22:09 codegangsta

swcMinify: true

i had swcMinify: true aswell, this work for me too, thank you very much for the reply

Xathoms avatar Sep 19 '22 05:09 Xathoms

Found my issue. I had swcMinify: true in my next project, removing it fixed whatever issues I had with production builds

It's working for me Thanks