Closed TiagoCavalcante closed 2 years ago
I also encountered this problem
I am also having this issue. Are there any updates?
Edit: I'm using the "@react-three/drei/native" and am having this same issue
I found this in the discord, but this in my metro.config.js fixed it for me
module.exports = {
resolver: {
sourceExts: ['jsx', 'js', 'ts', 'tsx','umd','cjs'],
},
};
fixed the issue for me
Is UMD relevant for three-mesh-bvh? I have cjs for https://docs.pmnd.rs/react-three-fiber/getting-started/installation#react-native but I'll have to amend it in that case.
The latest version with React 18 is working now.
three
version: 0.138.3@react-three/fiber
version: 8.0.0-beta.3@react-three/drei
version: 9.0.0-beta.1node
version: 16.13.2npm
version: 8.5.5Problem description:
The beta version isn't working with React-Native because of a missing dependency: three-mesh-bvh
Relevant code:
Suggested solution:
I don't know what can be done, I have also tried installing that package by myself but the error is still there.