Babylonjs-inspector type dependencies missing

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 ?

This is something we need to fix for 4.2. In the meantime your solution is correct :slight_smile:
Adding @RaananW as a FYI to create an issue for it to track it