iftekhs's avatar
Level 13

[eslint] Plugin "react" was conflicted between "package.json

Hi, I am suddenly getting this error ->

[eslint] Plugin "react" was conflicted between "package.json » eslint-config-react-app » project_path\node_modules\eslint-config-react-app\base.js" and "BaseConfig » project_path\node_modules\eslint-config-react-app\base.js".

How can I fix this?

0 likes
8 replies
Sinnbeck's avatar

Seems that your versions dont match, but without the package.json we can only guess

iftekhs's avatar
Level 13

@Sinnbeck

{
 "name": "project",
 "version": "0.1.0",
 "private": true,
 "dependencies": {
   "@testing-library/jest-dom": "^5.16.5",
   "@testing-library/react": "^13.4.0",
   "@testing-library/user-event": "^13.5.0",
   "react": "^18.2.0",
   "react-dom": "^18.2.0",
   "react-scripts": "5.0.1",
   "web-vitals": "^2.1.4"
 },
 "scripts": {
   "start": "react-scripts start",
   "build": "react-scripts build",
   "test": "react-scripts test",
   "eject": "react-scripts eject"
 },
 "eslintConfig": {
   "extends": [
     "react-app",
     "react-app/jest"
   ]
 },
 "browserslist": {
   "production": [
     ">0.2%",
     "not dead",
     "not op_mini all"
   ],
   "development": [
     "last 1 chrome version",
     "last 1 firefox version",
     "last 1 safari version"
   ]
 }
}

iftekhs's avatar
Level 13

@Sinnbeck Ya actually I edited the path and put "project_path". But now when I try to run "npm start" with my vscode terminal it works fine but if I use the hyper terminal it gives me that error. any idea why? is it not getting the path correctly or something?

Sinnbeck's avatar

@iftekhs According to those links I posted it does indeed seem that its a path mismatch

1 like
RickTheProgrammer's avatar

Deleting this from my package.json work for me

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

Please or to participate in this conversation.