Skip to content

Peer dependency issue upgrading to angular 20 #30733

@GraceG7

Description

@GraceG7

Command

version

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

As a result of updating angular to v20, I'm getting peer dependency issue as follows
├─┬ @‌angular/build 20.1.0
│ └── ✕ unmet peer less@^4.2.0: found 4.1.3

I've done some tracing and found @angular/build@20.1.0 depends on vite@7.0.0 which depends on less@4.1.3

Is it possible for these to be updated so my angular upgrade (and nx upgrade to v21) can go through

Minimal Reproduction

Upgrade angular to v20

Exception or Error


Your Environment

Angular CLI: 20.1.0
Node: 22.17.0
Package Manager: pnpm 10.11.0
OS: win32 x64

Angular: 20.1.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, google-maps, language-service, localize, material
... platform-browser, platform-browser-dynamic, pwa, router
... service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.2001.0
@angular-devkit/build-angular   20.1.0
@angular-devkit/core            20.1.0
@angular-devkit/schematics      20.1.0
@schematics/angular             20.1.0
ng-packagr                      20.1.0
rxjs                            7.8.2
typescript                      5.8.3
webpack                         5.100.1
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