Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempted import error: 'AmbientLight' is not exported from 'three'. #497

Closed
wbssbw opened this issue Feb 23, 2024 · 1 comment
Closed

Comments

@wbssbw
Copy link

wbssbw commented Feb 23, 2024

Describe the bug

./node_modules/3d-force-graph/dist/3d-force-graph.mjs
Attempted import error: 'AmbientLight' is not exported from 'three'.

Cannot import react-force-graph-3d. Running version:

"react-force-graph-3d": "^1.24.2",

Using node v18.17.1 and create-react-app

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.3.1
@wbssbw
Copy link
Author

wbssbw commented Feb 23, 2024

Resolved now. For anyone facing the same issue, updating react-scripts from v4 to v5 solved the issue

@wbssbw wbssbw closed this as completed Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant