In my code I have tried to make it possible to access the information on my gltf, it was first an IFC file and then using blender I exported it as a gltf file but now I am getting this error
Here is my code:
const loadGLTFModel = () => {
const loader = new GLTFLoader();
loader.load(
'model-.gltf',
(gltf) => {
const model = gltf.scene;
scene.addd(model);
},
undefined,
(error) => {
console.error('Error loading model:', error);
},
);
};
In addition, the same code and file seems to work on my colleague’s computer and IDE but not mine and are methods/steps to load the model were identical yet I only seem to be getting this error.
I was wondering if anyone has run into this issue before and if so could you please enlighten me on how to solve it?