Skip to content

yarn pnp with ng add angular-eslint fails on v20 #30435

Closed as not planned
Closed as not planned
@JamesHenry

Description

@JamesHenry

Command

add

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Discovered when proving that yarn pnp is no longer an issue on the angular-eslint side: angular-eslint/angular-eslint#1091 (comment)

Minimal Reproduction

yarn dlx @angular/cli new --package-manager yarn
yarn install # to confirm no issues yet
yarn ng add [email protected] # blows up per the below screenshot
Image

This worked though:

  • add [email protected] manually to package.json and run yarn install (no yarn pnp install errors, I think proving it's not an angular-eslint package issue)
  • run ng add angular-eslint as normal and it now succeeds

Exception or Error


Your Environment

Angular CLI: 20.0.0
Node: 22.16.0
Package Manager: yarn 4.9.1-git.20250411.hash-1908ee79f
OS: darwin arm64

Angular: 20.0.0
... build, cli, common, compiler, compiler-cli, core, forms
... platform-browser, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.2000.0 (cli-only)
@angular-devkit/core         20.0.0 (cli-only)
@angular-devkit/schematics   20.0.0 (cli-only)
@schematics/angular          20.0.0 (cli-only)
rxjs                         7.8.2
typescript                   5.8.3
zone.js                      0.15.1

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions