My program runs fine, but eas build fails when it runs “npm install” No matter what i do, there is always a dependency conflict. I tried running with legacy peer deps and force, clearing cache, deleting and re-installing node_modules and package-lock.json, but none of it works.
Here are the complete logs:
Running "npm install" in the root dir of your repository
2[stderr]
npm WARN
3[stderr]
ERESOLVE overriding peer dependency
4[stderr]
npm
5[stderr]
WARN While resolving: @urql/exchange-retry@0.3.0
6[stderr]
npm
7[stderr]
WARN Found: graphql@16.6.0
8[stderr]
npm WARN node_modules/graphql
9[stderr]
npm
10[stderr]
WARN graphql@"^16.6.0" from the root project
11[stderr]
npm WARN 3 more (@graphql-typed-document-node/core, @urql/core, graphql-tag)
12[stderr]
npm WARN
13[stderr]
npm WARN Could not resolve dependency:
14[stderr]
npm WARN
15[stderr]
peer graphql@"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" from @urql/exchange-retry@0.3.0
16[stderr]
npm WARN node_modules/@urql/exchange-retry
17[stderr]
npm WARN @urql/exchange-retry@"0.3.0" from @expo/cli@0.3.2
18[stderr]
npm WARN node_modules/@expo/cli
19[stderr]
npm WARN
20[stderr]
npm WARN Conflicting peer dependency: graphql@15.8.0
21[stderr]
npm WARN node_modules/graphql
22[stderr]
npm WARN peer graphql@"^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" from @urql/exchange-retry@0.3.0
23[stderr]
npm WARN node_modules/@urql/exchange-retry
24[stderr]
npm WARN @urql/exchange-retry@"0.3.0" from @expo/cli@0.3.2
25[stderr]
npm WARN node_modules/@expo/cli
26[stderr]
npm ERR!
27[stderr]
code ERESOLVE
28[stderr]
npm ERR! ERESOLVE could not resolve
29[stderr]
npm ERR!
30[stderr]
npm ERR! While resolving: aws-amplify-react-native@6.0.8
31[stderr]
npm ERR! Found: graphql@16.6.0
32[stderr]
npm ERR! node_modules/graphql
33[stderr]
npm ERR! graphql@"^16.6.0" from the root project
34[stderr]
npm ERR! peer graphql@"^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" from @graphql-typed-document-node/core@3.1.1
35[stderr]
npm ERR! node_modules/@graphql-typed-document-node/core
36[stderr]
npm ERR! @graphql-typed-document-node/core@"^3.1.0" from @urql/core@2.3.6
37[stderr]
npm ERR! node_modules/@urql/core
38[stderr]
npm ERR! @urql/core@"2.3.6" from @expo/cli@0.3.2
39[stderr]
npm ERR! node_modules/@expo/cli
40[stderr]
npm ERR! @expo/cli@"0.3.2" from expo@46.0.17
41[stderr]
npm ERR! node_modules/expo
42[stderr]
npm ERR! 1 more (@urql/exchange-retry)
43[stderr]
npm ERR! 2 more (@urql/core, graphql-tag)
44[stderr]
npm ERR!
45[stderr]
npm ERR! Could not resolve dependency:
46[stderr]
npm ERR! peer graphql@"^14.0.0" from aws-amplify-react-native@6.0.8
47[stderr]
npm ERR! node_modules/aws-amplify-react-native
48[stderr]
npm ERR! aws-amplify-react-native@"^6.0.5" from the root project
49[stderr]
npm ERR!
50[stderr]
npm ERR! Conflicting peer dependency: graphql@14.7.0
51[stderr]
npm ERR! node_modules/graphql
52[stderr]
npm ERR! peer graphql@"^14.0.0" from aws-amplify-react-native@6.0.8
53[stderr]
npm ERR! node_modules/aws-amplify-react-native
54[stderr]
npm ERR! aws-amplify-react-native@"^6.0.5" from the root project
55[stderr]
npm ERR!
56[stderr]
npm ERR! Fix the upstream dependency conflict, or retry
57[stderr]
npm ERR! this command with --force, or --legacy-peer-deps
58[stderr]
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
59[stderr]
npm ERR!
60[stderr]
npm ERR! See /home/expo/.npm/eresolve-report.txt for a full report.
61[stderr]
62[stderr]
npm ERR! A complete log of this run can be found in:
63[stderr]
npm ERR! /home/expo/.npm/_logs/2022-11-28T18_43_55_385Z-debug-0.log
64npm exited with non-zero code: 1