I use Three.js in a Gridsome projet, but I'm unable to import .glb file (3D model) with GLTFLoader. Gridsome considers img (png/jpg) or .js files stored in src/assets
but not glb.
My files hierarchy :
My import function :
this.loader.load('../assets/models/mars.glb', function(gltf) {
let scale = 5.6;
});
I receive a 404 error when loading the file.
Any idea ?