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

Cannot read property "trim" of undefined #3333

Closed
ashkalor opened this issue Aug 11, 2024 · 5 comments · Fixed by #3341
Closed

Cannot read property "trim" of undefined #3333

ashkalor opened this issue Aug 11, 2024 · 5 comments · Fixed by #3341
Labels
bug Something isn't working react-native to do with react-native

Comments

@ashkalor
Copy link

This is the error that appears on fresh installation of React three Fiber v18.17.5

It shows up atleast twice and sometimes thrice.

Device : Samsung Galaxy Tab A9
Android Version : Android 14
Repo Link to reproduce: Link

Screenshot_20240811_182528_sample

@yyuunn922
Copy link

There seems to be something wrong with version 8.17.*,

"@react-three/fiber": "8.16.8", Try it,

@CodyJasonBennett
Copy link
Member

If 8.16.8 works, does 8.17.5 with <Canvas events={null} /> still crash?

@CodyJasonBennett CodyJasonBennett added bug Something isn't working react-native to do with react-native labels Aug 13, 2024
@yyuunn922
Copy link

If 8.16.8 works, does 8.17.5 with <Canvas events={null} /> still crash?

Yes, adding events=null does not solve the trim error.

@ashkalor
Copy link
Author

There seems to be something wrong with version 8.17.*,

"@react-three/fiber": "8.16.8", Try it,

Yes I am aware, raised this issue specifically for version 18.17.5. It started recurring after #3252 got merged I think.

@NikitaDudin
Copy link

Faced with same issue. I patched library.
Temporary solution: revert rest {...bind} props, remove this from GLView and add to Root View again.

patch: @react-three+fiber+8.17.5.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working react-native to do with react-native
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants