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.

gltfjsx command error.

See original GitHub issue

Hello, the following error occurs when I run the npx gtlfjsx model.gltf command in a shell env and I’m a little confused. if anyone could point out what I’m doing wrong that would be amazing.

(node:6616) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time (Use node --trace-warnings ... to show where the warning was created) Parse TypeError: fetch failed at Object.processResponse (node:internal/deps/undici/undici:5555:34) at node:internal/deps/undici/undici:5877:42 at node:internal/process/task_queues:140:7 at AsyncResource.runInAsyncScope (node:async_hooks:203:9) at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
Sean-Bradleycommented, Dec 21, 2022

While we wait for the fix for Node v18, instead of downgrading to Node v16…, you can try a fork of a fix,

try, $ npx Sean-Bradley/gltfjsx#fix-dependencies [Model] [options]

instead of $ npx gltfjsx [Model] [options]

2reactions
drcmdacommented, Dec 21, 2022

i might have inadvertedly caused another node 18 issue by using squoosh in v6 🫠 node and that brute forced esm switch is such a mess right now.

npx gltfjsx@5.0.4 … will work, but no webp + squoosh (which has drastic size benefits) npx gltfjsx will most likely complain

i talked to don mccurdy and gltf-transform will soon kick out squoosh in favour of sharp, then all these issues should go away.

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 - 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 >
Gltfjsx NPM
A small command-line tool that turns GLTF assets into declarative and re-usable react-three-fiber JSX components. Why? Because the GLTF workflow on the web...
Read more >
@react-three/gltfjsx - npm Package Health Analysis | Snyk
Learn more about @react-three/gltfjsx: package health score, popularity, security, ... A small command-line tool that turns GLTF assets into declarative and ...
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