- EXPO SDK Version: 46
- Platform: Android
Recently I migrated from expo sdk 45 to 46. Now geeting error while creating build (eas build). But my App is running perfectly on Android studio emulator. when i run npm install in console, i got mesage “up to date”, and when i run npx expo install --fix, i got
this error message - “Dependencies are up to date”.
Error :-
Running "npm install" in the root dir of your repository
2[stderr]
npm ERR!
3[stderr]
code ERESOLVE
4[stderr]
npm ERR!
5[stderr]
ERESOLVE could not resolve
6[stderr]
npm
7[stderr]
ERR!
8[stderr]
npm ERR!
9[stderr]
While resolving: @react-native-community/masked-view@0.1.10
10[stderr]
npm ERR! Found: react@18.0.0
11[stderr]
npm ERR! node_modules/react
12[stderr]
npm ERR! react@"18.0.0" from the root project
13[stderr]
npm ERR! peer react@">=16.3.0" from @callstack/react-theme-provider@3.0.8
14[stderr]
npm
15[stderr]
ERR! node_modules/@callstack/react-theme-provider
16[stderr]
npm ERR! @callstack/react-theme-provider@"^3.0.7" from react-native-paper@4.12.5
17[stderr]
npm ERR! node_modules/react-native-paper
18[stderr]
npm ERR! react-native-paper@"^4.12.4" from the root project
19[stderr]
npm ERR! 1 more (react-native-paper-dates)
20[stderr]
npm ERR! 33 more (@expo/react-native-action-sheet, ...)
21[stderr]
npm ERR!
22[stderr]
npm ERR! Could not resolve dependency:
23[stderr]
npm ERR! peer react@"^16.0" from @react-native-community/masked-view@0.1.10
24[stderr]
npm ERR! node_modules/@react-native-community/masked-view
25[stderr]
npm ERR! @react-native-community/masked-view@"0.1.10" from the root project
26[stderr]
npm
27[stderr]
ERR! peer @react-native-community/masked-view@">= 0.1.0" from @react-navigation/stack@5.14.3
28[stderr]
npm ERR! node_modules/@react-navigation/stack
29[stderr]
npm ERR! @react-navigation/stack@"5.14.3" from the root project
30[stderr]
npm ERR!
31[stderr]
npm ERR! Conflicting peer dependency: react@16.14.0
32[stderr]
npm ERR! node_modules/react
33[stderr]
npm ERR! peer react@"^16.0" from @react-native-community/masked-view@0.1.10
34[stderr]
npm ERR! node_modules/@react-native-community/masked-view
35[stderr]
npm ERR! @react-native-community/masked-view@"0.1.10" from the root project
36[stderr]
npm ERR! peer @react-native-community/masked-view@">= 0.1.0" from @react-navigation/stack@5.14.3
37[stderr]
npm ERR! node_modules/@react-navigation/stack
38[stderr]
npm ERR! @react-navigation/stack@"5.14.3" from the root project
39[stderr]
npm ERR!
40[stderr]
npm ERR! Fix the upstream dependency conflict, or retry
41[stderr]
npm ERR! this command with --force, or --legacy-peer-deps
42[stderr]
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
43[stderr]
npm ERR!
44[stderr]
npm ERR! See /home/expo/.npm/eresolve-report.txt for a full report.
45[stderr]
46[stderr]
npm ERR! A complete log of this run can be found in:
47[stderr]
npm ERR! /home/expo/.npm/_logs/2023-04-04T18_23_47_938Z-debug-0.log
48npm exited with non-zero code: 1