Skip to content

Commit bbce8f0

Browse files
fix(core): drop the unused optional @angular/platform-server peer (#3792)
npm 10, and npm 11 before 11.20, resolve a missing optional peer anyway while installing. For an app whose package.json uses caret ranges and whose Angular is one patch behind the newest, npm picks the newest @angular/platform-server, which requires that exact newest @angular/core, and the install stops with ERESOLVE. Every current Node line bundles one of those npm versions. Nothing in the published package imports @angular/platform-server, so the peer is removed. Apps that render on the server still install it themselves, as they already do.
1 parent 31fb2ae commit bbce8f0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎src/package.json‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@
3131
"@angular/common": "^21.2.0",
3232
"@angular/core": "^21.2.0",
3333
"@angular/platform-browser": "^21.2.0",
34-
"@angular/platform-server": "^21.2.0",
3534
"rxjs": "~7.8.0",
3635
"firebase-tools": "^14.0.0 || ^15.0.0",
3736
"typescript": ">=5.8 <6.0"
3837
},
3938
"peerDependenciesMeta": {
4039
"firebase-tools": { "optional": true },
41-
"@angular/platform-server": { "optional": true },
4240
"typescript": { "optional": true }
4341
},
4442
"dependencies": {

0 commit comments

Comments
 (0)