Skip to content

Bug: [v8.0.0-alpha.10] incorrect error message Parsing error: "parserOptions.programs" #9096

Closed
@OlivierZal

Description

@OlivierZal

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Issue Description

Bug discussed and confirmed by @JoshuaKGoldberg and @bradzacher.

Config working with typescript-eslint v7.9.0 does not work with v8.0.0-alpha.10, raising:

/Users/<...>/eslint.config.js
  0:0  error  Parsing error: "parserOptions.programs" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided program instance(s): eslint.config.js

although I don't use any home-made program.

Potential culprit: https://github.com/typescript-eslint/typescript-eslint/pull/8834/files

Reproduction Repository Link

https://github.com/OlivierZal/melcloud-api/blob/e118342a2ce16c49e41e145844bc318e344cfe52/eslint.config.js

Repro Steps

  1. git clone https://github.com/OlivierZal/melcloud-api
  2. git co e118342a2ce16c49e41e145844bc318e344cfe52
  3. eslint .
  4. npm i typescript-eslint@8.0.0-alpha.10 --force
  5. eslint .
  6. compare the 2 outputs (see attached screenshots: v7.9.0 vs v8.0.0-alpha)

v7
v8

Versions

package version
@typescript-eslint/eslint-plugin 8.0.0-alpha.10
TypeScript 5.4.5
ESLint 9.2.0
node 22.1.0

Metadata

Metadata

Labels

bugSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: typescript-estreeIssues related to @typescript-eslint/typescript-estreeteam assignedA member of the typescript-eslint team should work on this.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions