pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.73k stars 312 forks source link

Draco binary error: Objects are not valid as a React child #54

Closed nathansearles closed 3 years ago

nathansearles commented 3 years ago

Error

Objects are not valid as a React child (found: TypeError: e.DecoderBuffer is not a constructor). If you meant to render a collection of children, use an array instead.

Versions

Reproduce

  1. Download draco model: https://github.com/pmndrs/gltfjsx/blob/master/example/public/scene_draco.glb
  2. Run npx gltfjsx scene_draco.glb --draco
  3. Note above error

Works as expect on non-draco models like: https://github.com/mrdoob/three.js/blob/dev/examples/models/gltf/Flamingo.glb

nathansearles commented 3 years ago

Could this have any connection to this issue with the Draco decoders?

drcmda commented 3 years ago

Will look into it

drcmda commented 3 years ago

it's strange, i casnt reproduce it locally but once i do npx gltfjsx i get it ... :-S

drcmda commented 3 years ago

i hope its fixed