Use NodeMaterial with THREE.JS module

Hi! I try to import three js as module, but nodeMaterial can`t find it. Is there way how to do this?

Try to import the node classes from the jsm directory as mentioned in this guide:

https://threejs.org/docs/index.html#manual/en/introduction/Import-via-modules

You can import the classes individually or everything all at once under a specific namespace. This would look like so:

import * as Nodes from 'three/examples/jsm/nodes/Nodes.js';

Example: https://threejs.org/examples/webgl_materials_nodes