expo-three icon indicating copy to clipboard operation
expo-three copied to clipboard

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

Open Vochsel opened this issue 2 years ago • 1 comments

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

npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
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 [email protected]
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 avatar Sep 13 '22 03:09 Vochsel

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

Vochsel avatar Sep 13 '22 03:09 Vochsel