928 viewsMern Amazona
1 Comment

Hi Basir – When I try to deploy my site through Heroku (Lesson 33) I get the error (shown below) in Heroku. I’m having trouble identifying what I need to do. Do you know why I am getting this error? Thanks!

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.3.0″ from @paypal/[email protected]
npm ERR! node_modules/@paypal/react-paypal-js
npm ERR! @paypal/react-paypal-js@”^7.8.1″ from the root project
npm ERR! 15 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! See /tmp/npmcache.jGCPe/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.jGCPe/_logs/2022-10-01T16_23_51_653Z-debug-0.log
—–> Build failed

We’re sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys

Some possible problems:

– Node version not specified in package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

Bassir Changed status to publish November 26, 2023

Is there a fix for this error, as I’m getting it as well – thanks.

MB Answered question November 2, 2022