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
904 stars 156 forks source link

Attempted Import Error #172

Open FalseFeint opened 7 months ago

FalseFeint commented 7 months ago

Hi,

I used this package a couple months ago and everything was working great. I started a new project and when I try to import Globe I get the following error:

Failed to compile.

./node_modules/globe.gl/dist/globe.gl.mjs
Attempted import error: 'AmbientLight' is not exported from 'three'.

I tried downgrading three to 0.162.0 (latest is currently 0.163.0). Not sure what else I should try, any help/direction would be great, thanks!

vasturiano commented 7 months ago

@FalseFeint looks like something might be wrong with your local version of three in your node_modules. I would try to reset your node_modules and reinstall the packages again to see if the issue fixes itself.

To verify if this is a wider issue, I'd recommend to try to reproduce it in https://codesandbox.io/ .