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

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

Open Franbr31 opened this issue 1 year ago • 2 comments

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! :)

Franbr31 avatar Feb 19 '24 14:02 Franbr31

@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?

vasturiano avatar Feb 20 '24 00:02 vasturiano

Hi! I have the same issue, is there anything new? I have 23.1.2 version of tweenJs.

Thank you very much!

AitorMelero avatar Jul 10 '24 09:07 AitorMelero