react项目启动报错Plugin “react“ was conflicted

Plugin "react" was conflicted between "package.json » eslint-config-react-app » D:\d我的文件夹\react项目\test_react\node_modules\eslint-config-react-app\base.js" and "BaseConfig » D:\D我的文件夹\react项目\test_react\node_modules\eslint-config-react-app\base.js".

解决方法:

  1. 在package.json删除
"eslintConfig": {
    "extends": [
        "react-app",
        "react-app/jest"
    ]
},
  1. 删除yarn.lock后执行yarn install
    ERROR in Plugin “react” was conflicted

你可能感兴趣的:(react.js,javascript,前端)