I am trying to use the Threejs library inside an environment that does not allow the use of npm or modules. Unfortunately it seems to me that my only option is to download the main library statically along with the GLTFLoader and include them using script tags.
My issue is not with the main library itself but with the GLTFLoader, when i try to instantiate it i get this error: THREE.GLTFLoader is not a constructor.
Ive been trying to resolve this issue for a while now.
Like i explained in the topic, im working with an environment that doesnt allow imports or npm, isnt there a way to treat the GLTF loader code like a normal static js library that can be included with a script tag ?
There should be some issue with the code. It is almost impossible to guess it by the description provided so far. Here is example of using GLTFLoader without npm and without modules. The Three.js version is r135: