Cannot read properties of undefined (reading 'NodeEditor')

trying to edit Node Material from within my project.
What I did, did not work, then I tried this:

var nodeMaterial = new babylon.NodeMaterial("node", scene, { emitComments: true });

In both cases I get:
Cannot read properties of undefined (reading 'NodeEditor')

Script error.
at handleError (webpack://test_web/./node_modules/webpack-dev-server/client/overlay.js?:252:58)
at eval (webpack://test_web/./node_modules/webpack-dev-server/client/overlay.js?:271:7)

Am I missing some include?
Toggling the inspector works.

Same happens if I press pencil edit button in the inspector.

Thank you.

Of course, this solved the issue:
import "@babylonjs/node-editor";

1 Like