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

Problem integrating react-force-graph-2d in a react with TypeScript project #493

Open
Franbr31 opened this issue Feb 19, 2024 · 1 comment

Comments

@Franbr31
Copy link

Hi!!,
We are trying to use the react-force-graph-2d library in our project, but when compiling the app we have the following problem:

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

We use node: v14.21.3, react: v16.13.1 and typescript: v4.9.5, could this be due to a compatibility issue?

Thank you very much in advance! :)

@vasturiano
Copy link
Owner

@Franbr31 looks like you're running into an issue importing TweenJs. Can you tell which version of tweenJs do you have in your app's dependency tree?

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

2 participants