I am following along the Load a .GLTF file article from the manual and when I try to load the example model I get an RangeError. I am using React and serving with vite.
When i looked in the network tab in the inspector, the img file used for the texture shows that it has been downloaded but the actual size of the file is 0 B, the response is empty, and the preview shows the missing img icon. I have a hunch this has something to do with the error but i am fully stumped.
I've spent hours googling and chatting with ai about this. It would make my day if anyone could help me with this : )
I've attached my code and the error msg with the full stack trace: