There is no need to use an third-party module in order to use GLTFLoader
in you project. It’s part of the main repository now and can be included like so:
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
Besides, GLTFLoader
does not support node.js
environments since it relies on certain Web APIs like URL.createObjectURL()
.
Related topics: Using GLTFLoader on node and [Solved] GLTFLoader DRACOLoader in nodejs