Blog-App-using-MERN-stack icon indicating copy to clipboard operation
Blog-App-using-MERN-stack copied to clipboard

Dependency conflicts for installing frontend

Open jarvis1897 opened this issue 1 year ago • 1 comments

Can't install frontend due to dependency conflicts between React v18 and @mui/styles.

jarvis1897 avatar Aug 25 '24 04:08 jarvis1897

Change the version of ‘react and react-dom’ to 18.0.0 and install packages again.

Otherwise:

Alternative Solution:

  1. delete both node_modules and package-lock.json
  2. run npm i web-vitals --save-dev
  3. run npm install and then you can use npm run build and npm start again.

RizwanJamadar avatar Sep 29 '24 05:09 RizwanJamadar