Hi !
From what I understood @types/react
and @types/react-dom
are currently within devDependencies
of babylonjs-inspector
package, since this issue came out : Inspector @types dependencies · Issue #6357 · BabylonJS/Babylon.js · GitHub.
However when importing babylonjs-inspector
into a typescript project, like so :
await import(/* webpackChunkName: "babylonjs-inspector" */ "babylonjs-inspector");
I’m getting type errors :
TS2688: Cannot find type definition file for 'react'.
Which are solved by putting back @types/react
and @types/react-dom
into dependencies
.
Any ideas on what should be the correct place for these dependencies ?