Replies: 1 comment 2 replies
-
where's the code? that warning most likely means the path is wrong - it comes from the threejs loader, which is parsing a html 404 page not found error |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am pretty new to react three fiber and now I am having trouble deploying a simple 3D model.
What I want to achieve is very simple. Just load a 3D model to the main page.
Here is the code and it looks working on the Codesandbox.
https://codesandbox.io/s/scdw-2020-web-npb04?file=/src/App.js:658-1340
But when I try to deploy this on Vercel,
It never works and shows error like "web.js:78 Unexpected token h in JSON at position 0"
https://scdw-2020.vercel.app/
I separated the code from the original source and deployed somewhere else and this works.
https://codesandbox.io/s/affectionate-lehmann-vj5kl?file=/src/App.js:206-888
So I guess something is crashing on the original code, but hard to guess what it is.
Can I get some advice to solve this?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions