Skip to content

glb model is not found after I run npm run build in vite #2792

Answered by shadybassily
shadybassily asked this question in Q&A
Discussion options

You must be logged in to vote

so I managed to fix the issue, and it was all about the path.
since models folder is in the public folder, I should import it as
./models/cube.gltf not ./public/models/cube.gltf

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shadybassily
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant