react-force-graph icon indicating copy to clipboard operation
react-force-graph copied to clipboard

./node_modules/3d-force-graph/dist/3d-force-graph.mjs Can't import the named export 'AmbientLight' from non EcmaScript module (only default export is available)

Open rafasegat opened this issue 2 years ago • 2 comments

Describe the bug This issue is occurring for me:

./node_modules/3d-force-graph/dist/3d-force-graph.mjs Can't import the named export 'AmbientLight' from non EcmaScript module (only default export is available)

Additional context We're using Create React App.

"react": "16.13.1", "react-app-polyfill": "1.0.6", "react-dom": "16.13.1", "react-force-graph-2d": "1.25.0", "react-redux": "7.2.0", "react-router": "5.2.1", "react-router-dom": "5.2.0", "react-scripts": "4.0.3",

ANy thoughts? We tried to update the webpack but didn't work.

Thanks

rafasegat avatar Jul 03 '23 04:07 rafasegat

Hi @rafasegat thanks for reaching out. Are you able to reproduce your issue on https://codesandbox.io/ ? If you have a repro link it will allow us to look a bit deeper into your issue.

vasturiano avatar Jul 03 '23 18:07 vasturiano

I also encountered this issue using "react-force-graph-2d": "1.43.0" and "react-scripts": "4.0.3" My resolution was: bumped to "react-scripts": "5.0.1" deleted my yarn.lock file ran yarn install

ZakRabe avatar Aug 14 '23 01:08 ZakRabe