Asked 1 years ago
15 Aug 2023
Views 557
ajamil

ajamil posted

Unable to resolve dependency tree error when installing @expo/webpack-config

trying to work at react native and want to check the web how applications look
so it says you need to install

npx expo install @expo/webpack-config

but when I try to install it shows error as below


npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: test2@1.0.0
npm ERR! Found: expo@49.0.7
npm ERR! node_modules/expo
npm ERR!   expo@"~49.0.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer expo@"^48.0.17" from @expo/webpack-config@18.1.2
npm ERR! node_modules/@expo/webpack-config
npm ERR!   @expo/webpack-config@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!


not to sure what to do ?
Post Answer