Closed neilgamb closed 2 years ago
I am not an expert in expo, unfortunately, but from the error it sounds like this is an issue with expo. Have you tried making an issue there?
... /three-mesh-bvh/build/index.umd.cjs(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
Specifically it seems that expo is not even trying to load index.umd.cjs
(which exists if you look in the directory) and instead trying a variety of other extensions on the provided file instead, which is odd. The cjs extension is one of the recommended ways from node.js for distinguishing and supporting commonjs "require"-style files compared to modules (mjs) files.
Great. Thank for you the clarification. I actually started by first reaching out to the drei
maintainers and they directed me to you ha. No worries I will follow up with them.
No problem -- I'm gonna close this for now but in the interest of keeping these issues connected it looks like this is your issue for Drei. If you can post the one you make for expo here, as well, that would be great! And feel free to ping me in the relevant issue if there are other questions / discussions I can be useful for!
If it looks like something does need to be fixed here we can reopen or create a new issue.
three
version: "^0.134.0"@react-three/fiber
version: "^8.0.0-beta-02",@react-three/drei
version: "^7.22.1",node
version: 14.17npm
(oryarn
) version: yarn 1.22.5expo
version: "~43.0.2",Problem description:
I just installed three, r3f and drei in an expo app via the instructions here.
The app is running on both native and web via expo's react-native-web interface. So far everything is working OK on web.
When importing
import { useGLTF, Center } from '@react-three/drei/native'
however, I am getting the following error message on the native device (iPad):Suggested solution:
none so far sorry