Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jona91git opened this issue Oct 5, 2021 · 4 comments
Open

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

jona91git opened this issue Oct 5, 2021 · 4 comments

Comments

@jona91git
Copy link

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'

  • /Users/xxx/.npm/_npx/24391/lib/node_modules/gltfjsx/node_modules/@gltf-transform/core/dist/core.js
  • /Users/xxx/.npm/_npx/24391/lib/node_modules/gltfjsx/src/utils/transform.js
  • /Users/xxx/.npm/_npx/24391/lib/node_modules/gltfjsx/src/gltfjsx.js
  • /Users/xxx/.npm/_npx/24391/lib/node_modules/gltfjsx/src/components/App.js
  • /Users/xxx/.npm/_npx/24391/lib/node_modules/gltfjsx/node_modules/import-jsx/index.js
  • /Users/xxx/.npm/_npx/24391/lib/node_modules/gltfjsx/cli.js
@DannyvanderJagt
Copy link

The package gl-matrix released a new version (3.4.0) which brakes this package (see toji/gl-matrix#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
Copy link
Member

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: donmccurdy/glTF-Transform#378.

@drcmda
Copy link
Member

drcmda commented Oct 5, 2021

thanks @donmccurdy ! i updated and published

@jona91git
Copy link
Author

jona91git commented Oct 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants