Replies: 2 comments 3 replies
-
Are you sure in |
Beta Was this translation helpful? Give feedback.
1 reply
-
I check the source code, You can't pass path to useGLTF, you need pass url: const { nodes } = useGLTF('http://localhost:3000/star-icon-min.glb')
console.log(nodes) That's why |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using react-three/drei for 3D. Put the model file in the
public
. And use the path: '/star. glb'Although the model is loaded normally, there is an error:

I would like to know what is the best practice for static files in Remix.
Beta Was this translation helpful? Give feedback.
All reactions