Skip to content

Plugin "react" was conflicted between "./.eslintrc" and "BaseConfig #11893

Description

@eakl

Describe the bug

eslint-plugin-react conflicts with CRA base eslint config

Steps to reproduce

  • Create a react-app
  • Setup Eslint and extend eslint-plugin-react
  • Removed the default Eslint config in package.json
  • yarn build
Failed to compile.

Plugin "react" was conflicted between "./.eslintrc" and "BaseConfig » /Users/xxxx/xxx/project/web/node_modules/eslint-config-react-app/base.js".

Did you try recovering your dependencies?

I have tried to reinstall dependency and start a fresh react-app project

Environment

  Binaries:
    Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
    Yarn: 1.19.2 - /usr/local/bin/yarn
    npm: 8.3.0 - ~/.nvm/versions/node/v16.13.1/bin/npm
  npmPackages:
    react: ^17.0.2 => 17.0.2 
    react-dom: ^17.0.2 => 17.0.2 
    react-scripts: 5.0.0 => 5.0.0 
  npmGlobalPackages:
    create-react-app: Not Found

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions