vasturiano / react-globe.gl

React component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/react-globe.gl/example/world-population/
MIT License
866 stars 155 forks source link

Globe doesn't show on Next JS production mode #99

Open Xathoms opened 2 years ago

Xathoms commented 2 years ago

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)

codegangsta commented 2 years ago

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 commented 2 years ago

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

Xathoms commented 2 years ago

swcMinify: true

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

Fullstack-WEB-Blockchain-Developer commented 1 year ago

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