ERROR in Plugin "react" was conflicted between ".eslintrc.json" and "BaseConfig"
See original GitHub issueAfter 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:
- Created 2 years ago
- Reactions:25
- Comments:37
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
removing this from package.json worked for me:
“eslintConfig”: { “extends”: [ “react-app”, “react-app/jest” ] },
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.