question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error with command npx gltfjsx

See original GitHub issue

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/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:open
  • Created a year ago
  • Reactions:5
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

20reactions
willmaddcommented, Aug 1, 2022

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

1reaction
ppacorycommented, Jun 25, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

fetch failed when running npx gltfjsx command React Three ...
When I try to run gltfjsx to generate the jsx component that I will be using on my experiment game. I encountered this...
Read more >
gltfjsx - npm
Start using gltfjsx in your project by running `npm i gltfjsx`. There are no other projects in the npm registry using gltfjsx.
Read more >
Gltfjsx NPM
A small command-line tool that turns GLTF assets into declarative and re-usable ... Usage $ npx gltfjsx model.gltf [options] Options --types,Β ...
Read more >
GLTFJSX - React Three Fiber Tutorials - sbcode.net
GLTFJSX is a command line tool that will read through a glTF model, ... Only if you get this error, you can execute...
Read more >
How to use Blender to get model to a state where it can be ...
Re-import into blender; Export again as an embedded gltf; Run npx gltfjsx ./myfile.gltf --types --shadows --transform --aggressive --dracoΒ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found