NodeMaterial "broken" unless `@babylonjs/inspector` is imported

Hello there,

I’m trying to import a NodeMaterial in a scene, but I have this error if @babylonjs/inspector is not imported.


The Playground loads the inspector by default, so I can’t use it, but I’ve created a repository on GitHub.

If you comment out line 17 in src/app.js you’ll see the error.

I’m pretty sure this is because of side effects, like in this other thread of mine, but I can’t figure out by myself what other modules I have to import.


NodeMaterial does not rely or even imports the Inspector. So it must be something else :slightly_smiling_face:

Can you provide a live example maybe on jsfiddle?