-
Couldn't load subscription status.
- Fork 11.9k
Description
Command
build
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
18.2.20 (18.2.x latest)
Description
When using @angular-devkit/[email protected], running yarn shows this warning:
$ yarn
yarn install v1.22.22
...
warning "@angular-devkit/[email protected] > @vitejs/[email protected]"
has unmet peer dependency "vite@^6.0.0".This happens because @angular-devkit/build-angular includes @vitejs/plugin-basic-ssl, which has a peer dependency on vite.
However, build-angular itself does not actually use this plugin, so the dependency is unnecessary.
This issue was fixed once in v18.2.x (issue: #29921 , PR: #29928 ),
but the problem exists in v19 and v20, as well as in older v18.x versions before the fix.
To fix this, the dependency on @vitejs/plugin-basic-ssl should be removed from @angular-devkit/build-angular, just like in v18.2.x.
Minimal Reproduction
In package.json:
{
...
"devDependencies": {
"@angular/cli": "20.0.1",
"@angular-devkit/build-angular": "20.0.0"
}
...
}Then run:
yarnYou will get:
warning "@angular-devkit/[email protected] > @vitejs/[email protected]" has unmet peer dependency "vite@^6.0.0".Exception or Error
Your Environment
Node: 24.0.0
npm: 11.3.0
Yarn: 1.22.22
Angular CLI: 20.0.1
@angular-devkit/build-angular: 20.0.0
OS: Ubuntu 22.04 (wsl2)
Anything else relevant?
No response