My glb model works in dev/prod local but not on vercel prod #1997
-
Hi, I'm kindly overwhelmed by it these days, I'm creating a website for me and using a glb model loading with When I ran it locally, even with But when I deploy it on Vercel, using the same node version (14), it shows an error in the console: {
"type": "error",
"id": 1,
"error": "THREE.DRACOLoader: Decoding failed: Failed to decode geometry data."
} You can find the code here and also the reproduction link: https://github.com/marceloavf/marceloformentao.dev Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
the file is broken. tried to load it in gltf.report and same error. the file on your githubs public folder is broken as well. |
Beta Was this translation helpful? Give feedback.
-
Discovered the actual problem, git is parsing it to LF and breaking the glb binaries. For the solution, I have to set it binary on .gitattributes *.glb binary |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. |
Beta Was this translation helpful? Give feedback.
Discovered the actual problem, git is parsing it to LF and breaking the glb binaries.
For the solution, I have to set it binary on .gitattributes