Skip to content

Error running ng lint on projects using pnpm #30171

Closed as not planned
Closed as not planned
@mferrer05

Description

@mferrer05

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

When creating a new Angular project using pnpm as the package manager, the linter fails to work. Attempting to run ng lint results in the following error:

Error: Could not find the '@angular-eslint/builder:lint' builder's node package.

Steps to reproduce:
Run the command: ng new test-project --package-manager pnpm
Install the linter using ng lint
Try running the linter again using ng lint

At step 3, the error mentioned above appears.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Error: Could not find the '@angular-eslint/builder:lint' builder's node package.

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 19.2.9
Node: 22.14.0
Package Manager: pnpm 10.8.0
OS: win32 x64

Angular: 19.2.8
... common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1902.9
@angular-devkit/build-angular   19.2.9
@angular-devkit/core            19.2.9
@angular-devkit/schematics      19.2.9
@angular/cli                    19.2.9
@schematics/angular             19.2.9
rxjs                            7.8.2
typescript                      5.7.3
zone.js                         0.15.0

Anything else?

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