Repository navigation
fix(angular): pin @nativescript/angular to 20.0.x for core 8.9 - #23
Merged
Merged
Conversation
@nativescript/angular 20.1.x imports SplitView from @nativescript/core, which only exists in core 9. With the starter on core ~8.9.0 (required by NativeScript Preview), ^20.0.0 resolves to 20.1.1 and the bundle fails: export 'SplitView' (imported as 'SplitView') was not found in '@nativescript/core' 20.1.x declares no core peer dependency, so npm installs the mismatch silently. ~20.0.0 keeps the starter on 20.0.0 until Preview supports v9.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 12, 2026
Merged
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.
Problem
The Angular starter (https://nativescript.new/angular) fails to bundle on a fresh install:
@nativescript/angular20.1.x importsSplitView, which only exists in@nativescript/core9. The starter stays on core~8.9.0because NativeScript Preview doesn't support v9 yet, but^20.0.0resolves to@nativescript/angular@20.1.1. 20.1.x declares no@nativescript/corepeer dependency, so npm installs the mismatch without any warning.Fix
Pin
@nativescript/angularto~20.0.0, which resolves to 20.0.0 and has noSplitViewreference. Revisit once Preview supports core 9.Verification
Fresh
npm installofapps/nativescript-starter-angular, thennpx nativescript-webpack build:@nativescript/angular^20.0.0)SplitView)~20.0.0)