You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my TypeScript code, I import the loader this way:
import { GLTFLoader} from 'three/examples/jsm/loaders/GLTFLoader';
I guess to fix this, either BufferGeometryUtils hast to be exported in three.module.js or the code block has to be removed from the jsm version of GLTFLoader, as the global THREE object is not defined.
I also found that BufferGeometryUtils is an exception in the modularize script:
Description of the problem
I´m using three.js in an Angular project with webpack as bundler.
When trying to load a GLTF file a ReferenceError is thrown:
ERROR Error: Uncaught (in promise): ReferenceError: THREE is not defined ReferenceError: THREE is not defined at GLTFLoader.js:2715
Referring to this line of code:
three.js/examples/jsm/loaders/GLTFLoader.js
Line 2715 in 1bb6d19
In my TypeScript code, I import the loader this way:
import { GLTFLoader} from 'three/examples/jsm/loaders/GLTFLoader';
I guess to fix this, either BufferGeometryUtils hast to be exported in three.module.js or the code block has to be removed from the jsm version of GLTFLoader, as the global THREE object is not defined.
I also found that BufferGeometryUtils is an exception in the modularize script:
three.js/utils/modularize.js
Line 15 in e88edaa
Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)
The text was updated successfully, but these errors were encountered: