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

v6.2.12 - Cannot read properties of undefined (reading 'length') #242

Open
ruan-azevedo opened this issue Jan 24, 2024 · 2 comments
Open

Comments

@ruan-azevedo
Copy link

ruan-azevedo commented Jan 24, 2024

I'm learning R3F and when I tried to convert a .glb model from readyplayer.me using this tool, I'm getting this infinite loop on the browser:

Screenshot 2024-01-23 at 7 50 47 PM

Reproduction repo

https://github.com/RuanAzevedo/gltfjsx-bug-repro

Checkout the file https://github.com/RuanAzevedo/gltfjsx-bug-repro/blob/main/src/components/Experience.jsx for the following code:

// this one works fines
<primitive object={scene} />
// this one doesn't work
{/* <Avatar /> */}

Versions before 6.2.12 work fine (tested from 6.2.11 to 6.2.3).
I'm pretty new with this 3D stuff, but with some directions maybe I can investigate and send a PR.

@ruan-azevedo
Copy link
Author

Related issues
#223
#178

@ebowwa
Copy link

ebowwa commented May 6, 2024

Direct CLI Solution

{package_manager} install [email protected]

{package_manager} install read-pkg-up

{package_manager} gltfjsx -t {model_path}

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

2 participants