question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR in Plugin "react" was conflicted between ".eslintrc.json" and "BaseConfig"

See original GitHub issue

After updating to CRA 5.0.0, I got this error on compilation process:

ERROR in Plugin "react" was conflicted between ".eslintrc.json" and "BaseConfig » "..\react-app\node_modules\eslint-config-react-app\base.js". My eslint configuration is:

{
    "env": {
        "browser": true,
        "es2021": true
    },
    "extends": [
        "plugin:react/recommended",
        "airbnb",
        "plugin:react/jsx-runtime"
    ],
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
        "ecmaFeatures": {
            "jsx": true
        },
        "ecmaVersion": 12,
        "sourceType": "module"
    },
    "plugins": [
        "react",
        "@typescript-eslint"
    ],
    "rules": {...}
}

Any solutions/fixes?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:25
  • Comments:37

github_iconTop GitHub Comments

25reactions
GauravBansal29commented, Jan 1, 2022

removing this from package.json worked for me:

“eslintConfig”: { “extends”: [ “react-app”, “react-app/jest” ] },

14reactions
enoh-barbucommented, Apr 11, 2022

What I recently did and it works 100% is to create a new reat-app project (using CRA 5+), and move all the files and configurations inside that new folder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR in Plugin "react" was conflicted between ".eslintrc.json ...
The problem: eslint-plugin-react version in your project's dependency is "different" from the one in eslint-config-react-app package's ...
Read more >
Plugin "react" was conflicted between "package.json » eslint ...
The 'Plugin "react" was conflicted between ".eslintrc.json" and "BaseConfig"' error also occurs when you have incompatible versions of packages installed.
Read more >
[eslint] plugin "react" was conflicted between ... - You.com
After updating to CRA 5.0.0, I got this error on compilation process: ERROR in Plugin "react" was conflicted between ".eslintrc.json" and "BaseConfig ......
Read more >
ERROR in Plugin "react" was conflicted between ".eslintrc.json ...
Coding example for the question Create-react-app - ERROR in Plugin "react" was conflicted between ".eslintrc.json" and "BaseConfig"-Reactjs.
Read more >
[eslint] Plugin "react" was conflicted between "package.json
js" and "BaseConfig » project_path\node_modules\eslint-config-react-app\base.js". How can I fix this?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found