I am using Expo,
I keep getting this error every time I try using functionality of either fiber or drei
TypeError: WeakMap key must be an Object, js engine: hermes
From drei: import { Environment } from '@react-three/drei/native'
From fiber: useLoader(TextureLoader) - I fixed it by switching to three texture loading with new TextureLoader()
Am I doing something wrong? I have been debugging this for 6-7 hours and couldn't find a solution, I found that this happens when there is three version mismatch but I don't have multiple three versions installed, is there a specific version needed for react-fiber?
Error is thrown at three.cjs (22974:21)
three
version: 0.164.1@react-three/fiber
version: 8.16.3@react-three/drei
version: 9.105.6node
version: 21.7,3npm
(oryarn
) version: 10.5.2Problem description:
I am using Expo, I keep getting this error every time I try using functionality of either fiber or drei
TypeError: WeakMap key must be an Object, js engine: hermes
From drei: import { Environment } from '@react-three/drei/native' From fiber: useLoader(TextureLoader) - I fixed it by switching to three texture loading with new TextureLoader()Relevant code:
Am I doing something wrong? I have been debugging this for 6-7 hours and couldn't find a solution, I found that this happens when there is three version mismatch but I don't have multiple three versions installed, is there a specific version needed for react-fiber? Error is thrown at three.cjs (22974:21)
Suggested solution: