Skip to content

Bug: incorrect peer dependencies in v8.0.0-alpha.10 packages #9087

@divergentdave

Description

@divergentdave

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.

Relevant Package

typescript-eslint

Playground Link

No response

Repro Code

npm init
npm add --save-dev eslint@v9.2.0
npm add --save-dev typescript-eslint@v8.0.0-alpha.10
npm i

ESLint Config

N/A

tsconfig

N/A

Expected Result

I expected that depending on the 8.0.0-alpha.10 version of typescript-eslint would exclusively use 8.0.0-alpha.10 releases of packages, and thus only depend on eslint v9.

Actual Result

While installation succeeds, there is a warning about an invalid peer dependency, and it shows that typescript-eslint's v8 alpha packages and v7 packages are being commingled.

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @typescript-eslint/parser@7.8.0
npm WARN Found: eslint@9.2.0
npm WARN node_modules/eslint
npm WARN   dev eslint@"^9.2.0" from the root project
npm WARN   4 more (@eslint-community/eslint-utils, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer eslint@"^8.56.0" from @typescript-eslint/parser@7.8.0
npm WARN node_modules/@typescript-eslint/parser
npm WARN   peer @typescript-eslint/parser@"^7.0.0" from @typescript-eslint/eslint-plugin@8.0.0-alpha.10
npm WARN   node_modules/@typescript-eslint/eslint-plugin
npm WARN 
npm WARN Conflicting peer dependency: eslint@8.57.0
npm WARN node_modules/eslint
npm WARN   peer eslint@"^8.56.0" from @typescript-eslint/parser@7.8.0
npm WARN   node_modules/@typescript-eslint/parser
npm WARN     peer @typescript-eslint/parser@"^7.0.0" from @typescript-eslint/eslint-plugin@8.0.0-alpha.10
npm WARN     node_modules/@typescript-eslint/eslint-plugin

Additional Info

The problem first shows up in the peer dependencies of the eslint-plugin package, but I cannot select that package in the dropdown.

Versions

package version
@typescript-eslint/eslint-plugin 8.0.0-alpha.10
@typescript-eslint/parser 7.8.0
@typescript-eslint/scope-manager both 7.8.0 and 8.0.0-alpha.10
@typescript-eslint/typescript-estree both 7.8.0 and 8.0.0-alpha.10
@typescript-eslint/type-utils 8.0.0-alpha.10
@typescript-eslint/utils 8.0.0-alpha.10
TypeScript 5.4.5
ESLint 9.2.0
node 20.12.2

Metadata

Metadata

Labels

accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy