Skip to content

[eslint-config-next] Incompatible with [email protected] #29829

@JustFly1984

Description

@JustFly1984

What version of Next.js are you using?

11.1.2

What version of Node.js are you using?

16.7

What browser are you using?

irrelevant

What operating system are you using?

irrelevant

How are you deploying your application?

irrelevant

Describe the Bug

Updating to [email protected] produces an error:

Oops! Something went wrong! :(

ESLint: 8.0.0

Error: Cannot read config file: /Users/justfly/projects/tkww/homescreen-v2/node_modules/eslint-config-next/index.js
Error: Failed to patch ESLint because the calling module was not recognized.
If you are using a newer ESLint version that may be unsupported, please create a GitHub issue:
https://github.com/microsoft/rushstack/issues
Referenced from: /Users/justfly/projects/tkww/homescreen-v2/node_modules/eslint-config-next/core-web-vitals.js
    at Object.<anonymous> (/Users/justfly/projects/tkww/homescreen-v2/node_modules/@rushstack/eslint-patch/lib/modern-module-resolution.js:58:19)
    at Module._compile (/Users/justfly/projects/tkww/homescreen-v2/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (/Users/justfly/projects/tkww/homescreen-v2/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at Object.<anonymous> (/Users/justfly/projects/tkww/homescreen-v2/node_modules/@rushstack/eslint-patch/modern-module-resolution.js:1:63)
    at Module._compile (/Users/justfly/projects/tkww/homescreen-v2/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

Currently reverted to 7.32.0

Expected Behavior

Should support eslint@8

To Reproduce

update eslint to latest 8.0.0 version in any nextjs project using eslint-config-next

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions