253 viewsMern Amazona

I tried to deploy on render but keeps giving me the following error. How to fix please?
found 0 vulnerabilities
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@”^18.2.0″ from the root project
npm ERR! peer react@”^16.8.0 || ^17.0.0 || ^18.0.0″ from @paypal/[email protected]
npm ERR! node_modules/@paypal/react-paypal-js
npm ERR! @paypal/react-paypal-js@”^8.1.3″ from the root project
npm ERR! 18 more (@react-aria/ssr, @restart/hooks, @restart/ui, …)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@”^16.8″ from [email protected]
npm ERR! node_modules/use-reducer-logger
npm ERR! use-reducer-logger@”^1.0.2″ from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@”^16.8″ from [email protected]
npm ERR! node_modules/use-reducer-logger
npm ERR! use-reducer-logger@”^1.0.2″ 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!
npm ERR!
npm ERR! For a full report see:
npm ERR! /opt/render/.cache/_logs/2023-12-20T14_35_38_183Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /opt/render/.cache/_logs/2023-12-20T14_35_38_183Z-debug-0.log
==> Build failed 😞

Bassir Answered question December 24, 2023

uninstall use-reducer-logger and try again
npm uninstall use-reducer-logger

let me know the result.

Bassir Answered question December 24, 2023