Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Error resolving dependency eslint after ejecting #364

Open
Ploppz opened this issue Jan 21, 2022 · 0 comments
Open

Error resolving dependency eslint after ejecting #364

Ploppz opened this issue Jan 21, 2022 · 0 comments

Comments

@Ploppz
Copy link

Ploppz commented Jan 21, 2022

Running react-scripts eject, the last part of its output:

Running npm install...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^6.8.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^8.0.0" from [email protected]
npm ERR! node_modules/eslint-config-react-app
npm ERR!   eslint-config-react-app@"^7.0.0" 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 /home/ploppz/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ploppz/.npm/_logs/2022-01-21T13_29_16_157Z-debug-0.log
Ejected successfully!

Staged ejected files for commit.

And when I subsequently try npm install, I get the same error

Relevant part of package.json:

  "peerDependencies": {
    "react": "^16.14.0"
  },
  "devDependencies": {
    "@babel/preset-react": "^7.16.7",
    "babel-eslint": "^10.0.3",
    "cross-env": "^7.0.2",
    "eslint": "^6.8.0",
    "eslint-config-prettier": "^6.7.0",
    "eslint-config-standard": "^14.1.0",
    "eslint-config-standard-react": "^9.2.0",
    "eslint-plugin-import": "^2.18.2",
    "eslint-plugin-node": "^11.0.0",
    "eslint-plugin-prettier": "^3.1.1",
    "eslint-plugin-promise": "^4.2.1",
    "eslint-plugin-react": "^7.17.0",
    "eslint-plugin-standard": "^4.0.1",
    "gh-pages": "^2.2.0",
    "microbundle-crl": "^0.13.10",
    "npm-run-all": "^4.1.5",
    "prettier": "^2.0.4",
    "react": "^16.14.0",
    "react-dom": "^16.14.0",
    "react-scripts": "5.0.0"
  },
  "files": [
    "dist"
  ],
  "dependencies": {
    "@material-ui/core": "^4.11.2",
    "react-router-dom": "^5.2.0"
  },

I hope it's not me being a newbie but I have a hard time understanding what I have done wrong here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant