Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
JSM / GLTFLoader: Webpack error using jsm #15939
Description of the problem
I´m using three.js in an Angular project with webpack as bundler.
Referring to this line of code:
In my TypeScript code, I import the loader this way:
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:
Hardware Requirements (graphics card, VR Device, ...)
An other user reported the same problem here:
Merging #15582 should solve this issue, right?