-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[eslint-patch] ESLint 9 - Failed to patch ESLint because the calling module was not recognized. #4965
Comments
Yeah |
Possibly related issue: eslint/config-inspector#70 (see reproduction steps in the third comment). |
@iclanton can you please elaborate why this ticket was marked as low priority? It also fails in basic scenario of shareable config with ESLint 9... Here's an example of such config: https://www.npmjs.com/package/@kirill.konshin/eslint-config-next-custom?activeTab=code This is the usage: import defaultConfig from '@kirill.konshin/eslint-config-next-custom';
export default [
...defaultConfig,
{
ignores: [ ... ],
},
]; Error:
|
Related issue #4635 (comment) — I have added reproducible scenarios. It seems it has something to do with Yarn Berry. |
I also encountered the same error. |
Summary
Trying to use ESLint 9 with this plugin, which supposedly it should support now, but I can't get it to work.
Repro steps
Trying to import the plugin from
eslint.config.mjs
:but all I get when I run
eslint \"src/**/*.{ts,tsx,js}\"
is:Details
We migrated ESLint to Version 9, and then this patch plugin started breaking.
Standard questions
Please answer these questions to help us investigate your issue more quickly:
node -v
)?The text was updated successfully, but these errors were encountered: