pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.42k stars 290 forks source link

Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension. #168

Closed Aur71 closed 1 year ago

Aur71 commented 1 year ago

When i change it to Scene.jsx the error disappeared but the model does not render.

drcmda commented 1 year ago

This is just your bundler, some require *.jsx. As for loading, the glb needs to be inside public, practically all examples in Fiber docs went through gltfjsx, you can look up how it’s done there

Aur71 commented 1 year ago

ty

drcmda commented 1 year ago

it returns *.jsx by default now