Skip to content

Error running ESLint due to conflict with eslint-plugin-primer-react and primer/primitives #168

@khiga8

Description

@khiga8

Hi! The latest major version of primer/primitives, 8.1.0, appears to remove the deprecated colors folder which this library relies on. As a result, when a project is on the latest version of primer/primitives and we try to run ESLint, we run into:

Oops! Something went wrong! :(

ESLint: 8.57.0

Error: Failed to load plugin 'primer-react' declared in '--config': Cannot find module '@primer/primitives/dist/deprecated/colors'
Require stack:
- /home/runner/work/code-stats-collector/code-stats-collector/node_modules/eslint-plugin-primer-react/src/rules/no-deprecated-colors.js
- /home/runner/work/code-stats-collector/code-stats-collector/node_modules/eslint-plugin-primer-react/src/index.js
- /home/runner/work/code-stats-collector/code-stats-collector/node_modules/@eslint/eslintrc/dist/eslintrc.cjs

Wanted to flag to see if you have a recommendation forward.

It looks like this surfaced as a conflict in - #167.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions