Skip to content

Bug: @types/estree type errors after upgrading ESLint to 9.20.0 #19418

@Garfield550

Description

@Garfield550

Environment

Node version: v22.13.1
pnpm version: v10.2.1
Local ESLint version: v9.20.0
Global ESLint version:
Operating System: Darwin arm64 24.3.0

What parser are you using?

@typescript-eslint/parser

What did you do?

Updated from 9.19.0 to 9.20.0.

The inferred type of 'default' cannot be named without a reference to
'.pnpm/@types+estree@1.0.6/node_modules/@types/estree'. This is likely not portable.
A type annotation is necessary.ts(2742)

What did you expect to happen?

To compile like 9.19.0.

What actually happened?

Open packages/eslint-plugin-format/src/rules/test.ts

Image

Link to Minimal Reproducible Example

https://github.com/Garfield550/eslint-9.20.0-estree-types-issue

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionbugESLint is working incorrectlyrepro:yesIssues with a reproducible example

Type

No type

Projects

Status

Ready to Implement

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions