Repository navigation
Conversation
The optional @Angular-devkit peers were pinned to Angular 17.2. On newer Angular, installing the adapter failed in Nx workspaces. In plain apps it moved the app's devkit packages out of the root of node_modules, so the adapter build could no longer load them. Both peers now accept any version, as the Next.js adapter already does for `next`.
Replace `*` with a minimum tied to the adapter's version, so npm still flags Angular versions older than the adapter supports.
leoortizz
requested review from
Yuangwang,
abhis3,
annajowang and
falahat
as code owners
November 25, 2026 23:10
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the peer dependencies for @angular-devkit/architect and @angular-devkit/core in package.json to use >= version ranges instead of ~ ranges. The corresponding unit tests in create.spec.ts have been updated to reflect and validate these new version requirements. I have no feedback to provide.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@apphosting/adapter-angularpinned its optional@angular-devkitpeers to Angular 17.2. When an app lists the adapter in its ownpackage.json(for example to pin it),npm installfails withERESOLVEin Nx workspaces on newer Angular, because Nx lists@angular-devkit/coreas a root dependency and npm can't satisfy both versions. Plain Angular apps only get devkit through@angular/build, so npm installs nested copies instead. Stock App Hosting deploys aren't affected because the buildpack installs the adapter on its own.What changed
Both peers now accept 17.2 and later (
>=17.2.0and>=0.1702.0), like thenextpeer in@google-cloud/adapter-nextjs.*(as in@apphosting/adapter-nextjs, #336) or a list of supported majors would also work. A minimum still lets npm flag Angular versions the adapter doesn't support, and unlike a list it doesn't need an adapter release for every new major.Tested in an Angular 22.2 Nx workspace with the adapter as a devDependency: the published 17.2.17 fails with
ERESOLVE, this change installs.