Skip to content

FIx Key "plugins": Cannot redefine plugin "import". when used in fla… - #3089

Closed
offspring wants to merge 1 commit into
import-js:mainfrom
offspring:flat-config-fix
Closed

offspring wants to merge 1 commit into
import-js:mainfrom
offspring:flat-config-fix

Conversation

@offspring

Copy link
Copy Markdown

Fix for:
Oops! Something went wrong! :(

ESLint: 9.12.0

ConfigError: Config (unnamed): Key "plugins": Cannot redefine plugin "import".
at rethrowConfigError (/Users/atrzeciak/workspace/uber/uber-paste/uber-paste/node_modules/@eslint/config-array/dist/cjs/index.cjs:303:8)

@codecov

codecov Bot commented Oct 21, 2024

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.40%. Comparing base (67cc798) to head (bfe3a5a).
⚠️ Report is 33 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3089       +/-   ##
===========================================
+ Coverage   81.99%   95.40%   +13.41%     
===========================================
  Files          94       83       -11     
  Lines        4154     3571      -583     
  Branches     1395     1248      -147     
===========================================
+ Hits         3406     3407        +1     
+ Misses        748      164      -584     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ljharb ljharb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is completely identical, so I'm not sure why it would fix anything - either way, we'll need a regression test.

@ljharb
ljharb marked this pull request as draft October 21, 2024 23:00
@ethaizone

Copy link
Copy Markdown

I want to share something. I got same error too but later I found out it's error because eslint-config-next included this plugin when include with eslintrc.

so it's just FYI for who faced this issue and it doesn't cause from this package. It should cause from other packages.

@offspring offspring closed this Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants