I just started using Three.js awhile ago and I’m trying to use my GLTF/GLB file from blender to what I am doing but I encounter this Error: " Uncaught SyntaxError: Unexpected token ‘<’ GLTFLoader.js "
How can I fix this?
Thanks!
I just started using Three.js awhile ago and I’m trying to use my GLTF/GLB file from blender to what I am doing but I encounter this Error: " Uncaught SyntaxError: Unexpected token ‘<’ GLTFLoader.js "
How can I fix this?
Thanks!
Your path is wrong, it’s trying to parse the html 404 error, that’s where the < comes from. Make sure the file is inside public, not src, or import it.