Open Vochsel opened 1 year ago
Running npx create-react-native-app -t with-react-three-fiber creates the following error on npm install
npx create-react-native-app -t with-react-three-fiber
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" }
Running with npm install --legacy-peer-deps seems to create a working build, but this seems like a bad onboarding experience for new devs
npm install --legacy-peer-deps
Running
npx create-react-native-app -t with-react-three-fiber
creates the following error onnpm install
package.json dependencies: