error with command npx gltfjsx
See original GitHub issueAfter 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/react@11.9.0
βββ @emotion/styled@11.8.1
βββ @fontsource/inter@4.5.11
βββ @mui/icons-material@5.8.2
βββ @mui/material@5.8.2
βββ @mui/system@5.8.2
βββ @react-three/drei@9.13.0
βββ @react-three/fiber@8.0.22
βββ @testing-library/jest-dom@5.16.4
βββ @testing-library/react@13.3.0
βββ @testing-library/user-event@13.5.0
βββ @use-gesture/react@10.2.15
βββ draco3d@1.5.2
βββ gltfjsx@4.6.4
βββ meshline@2.0.4
βββ randomcolor@0.6.2
βββ react-color@2.19.3
βββ react-dom@18.1.0
βββ react-scripts@5.0.1
βββ react@18.1.0
βββ three@0.141.0
βββ web-vitals@2.1.4
βββ zustand@4.0.0-rc.1
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:8 (1 by maintainers)
Top GitHub Comments
Seems that the package is not compatible with node 18, I downgraded to node 16 and it works fine.
i use this to transform to mesh : https://gltf.pmnd.rs/