pmndrs / react-three-fiber

🇨🇭 A React renderer for Three.js
https://docs.pmnd.rs/react-three-fiber
MIT License
27.1k stars 1.55k forks source link

Cannot read property "trim" of undefined #3333

Closed ashkalor closed 2 weeks ago

ashkalor commented 1 month ago

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 commented 1 month ago

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

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

CodyJasonBennett commented 1 month ago

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

yyuunn922 commented 1 month ago

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 commented 1 month ago

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 commented 3 weeks ago

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