Skip to content

fix(angular): pin @nativescript/angular to 20.0.x for core 8.9 - #23

Merged
NathanWalker merged 1 commit into
mainfrom
fix/angular-core-8.9-compat
Nov 12, 2026
Merged

NathanWalker merged 1 commit into
mainfrom
fix/angular-core-8.9-compat

Conversation

@NathanWalker

Copy link
Copy Markdown
Contributor

Problem

The Angular starter (https://nativescript.new/angular) fails to bundle on a fresh install:

ERROR in ./node_modules/@nativescript/angular/fesm2022/nativescript-angular.mjs 931:39-48
export 'SplitView' (imported as 'SplitView') was not found in '@nativescript/core'

@nativescript/angular 20.1.x imports SplitView, which only exists in @nativescript/core 9. The starter stays on core ~8.9.0 because NativeScript Preview doesn't support v9 yet, but ^20.0.0 resolves to @nativescript/angular@20.1.1. 20.1.x declares no @nativescript/core peer dependency, so npm installs the mismatch without any warning.

Fix

Pin @nativescript/angular to ~20.0.0, which resolves to 20.0.0 and has no SplitView reference. Revisit once Preview supports core 9.

Verification

Fresh npm install of apps/nativescript-starter-angular, then npx nativescript-webpack build:

@nativescript/angular iOS Android
before (^20.0.0) 20.1.1 fails (SplitView) —
after (~20.0.0) 20.0.0 builds builds

@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.
@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 19681d33-ff06-4033-8351-870fe77d137d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@NathanWalker
NathanWalker merged commit e592497 into main Nov 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant