I am getting error while using GLTFLoader in my vue.js app.
Uncaught TypeError: three_build_three_module_js__WEBPACK_IMPORTED_MODULE_4__.GLTFLoader is not a constructor
Steps to reproduce:
- npm install three@0.130.1
- import * as THREE from “three/build/three.module.js”
- use new THREE.GLTFLoader();
you’ll get error while using GLTFLoader method.
I want help on this. is there any other way t load gltf file…? please let me know.
Thanks in advance.