expo / expo-three

Utilities for using THREE.js on Expo
MIT License
711 stars 87 forks source link

create-react-native-app with R3F has mismatched dependencies #271

Open Vochsel opened 1 year ago

Vochsel commented 1 year ago

Running npx create-react-native-app -t with-react-three-fiber creates the following error on npm install

npm ERR! While resolving: test@1.0.0
npm ERR! Found: three@0.143.0
npm ERR! node_modules/three
npm ERR!   three@"^0.143.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer three@"^0.127.0" from expo-three@6.2.0
npm ERR! node_modules/expo-three
npm ERR!   expo-three@"^6.1.0" from the root project

package.json dependencies:

{
    "@react-three/fiber": "^8.3.1",
    "expo": "^46.0.0",
    "expo-asset": "~8.6.1",
    "expo-file-system": "~14.1.0",
    "expo-gl": "~11.4.0",
    "expo-modules-core": "~0.11.3",
    "expo-three": "^6.1.0",
    "react": "18.0.0",
    "react-dom": "18.0.0",
    "react-native": "0.69.4",
    "react-native-web": "~0.18.7",
    "three": "^0.143.0"
}
Vochsel commented 1 year ago

Running with npm install --legacy-peer-deps seems to create a working build, but this seems like a bad onboarding experience for new devs