Hi everyone, I am really struggling to understand what is the problem with the gltf loader, basically when I try to import it with the appropriate loader it gives me this error:
This is my file structure:
This is the GLTF loader function:
I tried using an online GLTF viewer and it got imported with no problem. Thanks in advance
GLB format didn’t work also but I found a really stupid solution. I didn’t mention I was using Vite and by moving the ‘model’ folder to ‘public’ worked. Thanks anyway for your help