next-js-with-threejs
next-js-with-threejs copied to clipboard
Trying to import into my project
When I test the Birds page locally on my Next website, I see this error:
1 of 2 unhandled errors
Unhandled Runtime Error
TypeError: Cannot read property '1' of undefined
23 | <mesh
24 | name="Object_0"
> 25 | morphTargetDictionary={gltf.__$[1].morphTargetDictionary}
I tried to change the import of 'react-three-fiber' to '@react-three/fiber' to see if the new version fixes the issue, but I still have the same issue.
How do I fix that?