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

error with command npx gltfjsx #149

Open
ppacory opened this issue Jun 15, 2022 · 8 comments
Open

error with command npx gltfjsx #149

ppacory opened this issue Jun 15, 2022 · 8 comments

Comments

@ppacory
Copy link

ppacory commented Jun 15, 2022

After command : npx gltfjsx model.glb

TypeError: Failed to parse URL from /Documents/GIT/threejs/2022/sandbox.15.06.22/node_modules/draco3dgltf/draco_decoder_gltf.wasm
    at new Request (node:internal/deps/undici/undici:4813:19)
    at Agent.fetch2 (node:internal/deps/undici/undici:5539:29)
    at Object.fetch (node:internal/deps/undici/undici:6370:20)
    at fetch (node:internal/bootstrap/pre_execution:196:25)
    at /Documents/GIT/threejs/2022/sandbox.15.06.22/node_modules/draco3dgltf/draco_decoder_gltf_nodejs.js:39:485
    at /Documents/GIT/threejs/2022/sandbox.15.06.22/node_modules/draco3dgltf/draco_decoder_gltf_nodejs.js:40:128
    at Object.createDecoderModule (/Documents/GIT/threejs/2022/sandbox.15.06.22/node_modules/draco3dgltf/draco_decoder_gltf_nodejs.js:40:151)
    at Object.<anonymous> (/Documents/GIT/threejs/2022/sandbox.15.06.22/node_modules/gltfjsx/src/bin/DRACOLoader.js:2:40)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)

my npm list :
├── @emotion/[email protected]
├── @emotion/[email protected]
├── @fontsource/[email protected]
├── @mui/[email protected]
├── @mui/[email protected]
├── @mui/[email protected]
├── @react-three/[email protected]
├── @react-three/[email protected]
├── @testing-library/[email protected]
├── @testing-library/[email protected]
├── @testing-library/[email protected]
├── @use-gesture/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

@ppacory
Copy link
Author

ppacory commented Jun 15, 2022

the problem is here draco CDN. is not found
a look here : google/draco#888 && node-fetch/node-fetch#1566

perhaps try to replace with : https://cdn.jsdelivr.net/npm/[email protected]/draco_decoder.wasm

@soul-on-you
Copy link

I have the same problem

@ppacory
Copy link
Author

ppacory commented Jun 25, 2022

i use this to transform to mesh : https://gltf.pmnd.rs/

@benjaminha14
Copy link

same, having the same problem

@willmadd
Copy link

willmadd commented Aug 1, 2022

Seems that the package is not compatible with node 18, I downgraded to node 16 and it works fine.

@superdwayne
Copy link

Saved my sanity thank you @willmadd

@drcmda
Copy link
Member

drcmda commented Nov 1, 2022

i think nothing at the moment is compatible with node 18, i can't run anything, bundlers, all out of order due to breaking changes in some low level ssl stuff.

@matrix-root
Copy link

Thanks! I think, it'll be cool to add notes about Node 16 to README

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

7 participants