Skip to content

chore: upgrade templates to TypeScript 6#22

Draft
NathanWalker wants to merge 2 commits into
mainfrom
chore/upgrade-to-typescript-6
Draft

chore: upgrade templates to TypeScript 6#22
NathanWalker wants to merge 2 commits into
mainfrom
chore/upgrade-to-typescript-6

Conversation

@NathanWalker

Copy link
Copy Markdown
Contributor

Bumps typescript to 6.0.3/~6.0.0 across the root and all 5 per-framework templates (react, typescript, vue, svelte, angular).

Fixes real TS6 compatibility issues surfaced along the way:

  • Removed deprecated baseUrl from 5 tsconfigs (TS6 hard-errors on this with TS5101).
  • Added skipLibCheck to the react template's tsconfig.
  • Fixed two strict-nullability issues (typescript and angular templates) surfaced by TS6's stricter defaults.

Verified typechecking cleanly under TS 6.0.3: typescript, react, vue, svelte templates (per-template npm install + typecheck; the root yarn workspace install itself doesn't work in this sandbox — no working yarn/corepack). Angular template's plain tsc passes after fixes.

Known caveats (not fixed in this PR):

  • A real Angular AOT build will still reject TS6 until @angular/compiler-cli ships TS6 peer support (currently >=5.8 <5.9) — this is an upstream Angular constraint, not fixable from this repo.
  • vue/svelte templates have a pre-existing typeRoots misconfiguration (TS2688) that reproduces identically on TS 5.4/5.7 — unrelated to this bump, left untouched.

Companion PR in NativeScript/nativescript-app-templates upgrades that repo's templates to TypeScript 6 as well.


View session information ↗

NathanWalker and others added 2 commits July 21, 2026 13:51
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- drop deprecated baseUrl from template tsconfigs (TS5101 in TS6); make paths relative
- add skipLibCheck to react template tsconfig, matching all other templates
- fix strict-null issues surfaced by TS6 stricter defaults (typescript + angular templates)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 21, 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

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 30b6e943-e305-497b-a315-033fda017e22

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/upgrade-to-typescript-6

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

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant