Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Vochsel opened this issue Sep 13, 2022 · 1 comment
Open

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

Vochsel opened this issue Sep 13, 2022 · 1 comment

Comments

@Vochsel
Copy link

Vochsel commented Sep 13, 2022

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
Copy link
Author

Vochsel commented Sep 13, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant