pmndrs / gltfjsx

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

Cannot find module 'gl-matrix/vec3' #116

Open jona91git opened 2 years ago

jona91git commented 2 years ago

I've succesfully used gltfjsx in the past but suddenly today when I ran npx gltfjsx filename.glb I got the following error in my console: Cannot find module 'gl-matrix/vec3'

DannyvanderJagt commented 2 years ago

The package gl-matrix released a new version (3.4.0) which brakes this package (see https://github.com/toji/gl-matrix/issues/439). I assume they will fix it soon.

In the maintime you can add this to your package.json to continue.

"resolutions": {
    "gl-matrix": "3.3.0"
 }
donmccurdy commented 2 years ago

I've pushed a new release of @gltf-transform/core pinned to gl-matrix@~3.3.0, which should resolve things for gltfjsx as well. See: https://github.com/donmccurdy/glTF-Transform/pull/378.

drcmda commented 2 years ago

thanks @donmccurdy ! i updated and published

jona91git commented 2 years ago

I can confirm things are working again. @drcmda @donmccurdy thnx for the quick response and quick fix guys! I love using this package.