1.59K viewsMern Amazona

PLEASE HELP

I followed your course on MERN for amazona app. But I’m stuck on the publish to heroku.

Hello, See error from my extensive/several attempts to publish to Heroku.

—–> Building on the Heroku-22 stack
—–> Determining which buildpack to use for this app
—–> Node.js app detected

—–> Creating runtime environment

<code>   NPM_CONFIG_LOGLEVEL=error
   NODE_VERBOSE=false
   NODE_ENV=production
   NODE_MODULES_CACHE=true
</code>

—–> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)

<code>   Resolving node version 16.x...
   Downloading and installing node 16.17.0...
   Using default npm version: 8.15.0
</code>

—–> Installing dependencies
Installing node modules (package.json)

<code>   up to date, audited 1 package in 104ms

   found 0 vulnerabilities
</code>

—–> Build
Running build

<code>   > [email protected] build
   > cd backend && npm install  && cd ../frontend && npm install && npm run build

   added 102 packages, and audited 103 packages in 2s

   11 packages are looking for funding
     run `npm fund` for details

   found 0 vulnerabilities
</code>

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]

Bassir Changed status to publish September 15, 2022

hello there,

the error is here:

npm ERR! peer react@”^16.8″ from [email protected]

run

npm uninstall use-reducer-logger

and remove all usage of it in the code to fix the issue

the deploy again to fix the issue.

Bassir Answered question September 15, 2022