简体   繁体   中英

getting error " Plugin "react" was conflicted between "package.json » "

F:\\React tutoria;\\tut-3\\my-app\>npm run build

my-app@0.1.0 build
react-scripts build

Creating an optimized production build...
Failed to compile.

Plugin "react" was conflicted between "package.json » eslint-config-react-app » F:\\React tutoria;\\tut-3\\my-app\\node_modules\\eslint-config-react-app\\base.js" and "BaseConfig » C:\\Users\\GAGAN BISHT\\AppData\\Roaming\\npm\\node_modules\\react-scripts\\node_modules\\eslint-config-react-app\\base.js".

I tried to save package.json file again and again but it doesn't work

the solution for that is simply go to package.json file and delete the eslint-config

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM