eas build --platform ios --profile prod
keep throwing the error below. I spent quite some time re-searching but none of the answers i found helped.
Here are some of things I tried:
deleted node_module and package-lock.json, and npm install afterwards
npx clear-npx-cache
downgrading expo version to 46
etc…
wodin
March 17, 2023, 6:27pm
2
Hi @naina-lele
This seems to be a bug in npm
related to peer dependencies.
See my comment on a related thread for a workaround:
Are you using this? You don’t have react-dom or react-native-web, so maybe not unless maybe you’re bundling some stuff to load in a webview? If you’re not using it you might want to remove it. It should of course not be causing problems, but generally best to remove things you don’t need. Also, if you do need it it really belongs in devDependencies rather than dependencies.
But that’s not the cause of the problem.
If I try this with your deps it works for me. I was using yarn instead of npm, …
Thank you @wodin , not sure if it’s a smart work around but adding "eas-build-pre-install": "npm config set legacy-peer-deps true"
to script fixed my issue. The issue was def with npm
related to peer dependencies.