CodeWithMe
CodeWithMe

Reputation: 11

ESLint configuration in package.json » eslint-config-react-app is invalid:

Referenced from: D:{app folder}{app name}\package.json

Upvotes: 1

Views: 5433

Answers (1)

David Sanders
David Sanders

Reputation: 131

I actually had this same issue when updating react-scripts in my Create React App Project. My steps to resolve were.

  • Delete package-lock.json
  • Delete node_modules
  • Remove eslint dependencies from your devDependencies in package.json
  • run npm cache clear --force
  • npm install
  • npm install the the latest versions of the eslint packages you removed back to your devDependencies
  • Restart your project and see if it is fixed.

This worked for me.

UPDATE: I actually did not need to install eslint after removing them when installing React Scripts 5. It seems to use it under the hood.

Upvotes: 1

Related Questions