Skip to content

Request: Broader TypeScript peer dependency range for Angular 22.x (TypeScript 7.x support) #69704

Closed as not planned

Description

@ibrahimKaya66

Description

Angular 22.x currently declares a narrow TypeScript peer dependency (>=6.0 <6.1). TypeScript 7.0 has been released, but projects cannot upgrade to it while staying on Angular 22 because @angular/compiler-cli fails at compile time (e.g. readConfiguration / DiagnosticCategory incompatibilities).

This forces teams to stay on TypeScript 6.0.x even when they want to adopt newer TypeScript language and tooling features.

Motivation

  • TypeScript releases often land before Angular officially widens its peer range.
  • Narrow peer ranges block legitimate upgrades and create friction for teams that track TypeScript closely.
  • Clearer / broader support windows (or earlier preview support) would reduce version lock-in and avoid broken ng serve / ng build after a TypeScript bump.

Current behavior

Package Constraint
Angular 22.0.x
Declared TypeScript peer >=6.0 <6.1
TypeScript 7.0.x Not supported; build fails

Expected / requested behavior

  1. Widen or accelerate TypeScript peer dependency support so newer TypeScript majors/minors can be adopted sooner (ideally TypeScript 7.x on Angular 22.x or the next patch/minor).
  2. Document supported TypeScript ranges clearly per Angular version, and call out when a TypeScript release is intentionally unsupported.
  3. Where possible, reduce coupling so minor TypeScript upgrades do not hard-break the Angular compiler CLI.

Environment

  • Angular: 22.0.6
  • @angular/compiler-cli: 22.0.6
  • TypeScript (desired): 7.0.x
  • TypeScript (working): 6.0.3
  • Node.js: 22+ / 26

Additional context

This is a feature / compatibility request, not a report that Angular 22 is broken on its supported TypeScript range. The ask is to reduce TypeScript version lock-in so applications can upgrade TypeScript without waiting for a full Angular major, and without runtime/compile failures when doing so.

Thank you for considering this.

Activity

  1. added
    area: packaging
    on Jul 9, 2026
  2. added this to the needsTriage milestone on Jul 9, 2026
  3. JeanMeche commented on Jul 9, 2026

    @JeanMeche
    Member

    Supporting TS 7.0, requires a major refactoring of our compiler. Also note that ts 7.0 doesn't ship stabilised API which is also needed for full support of the next generation of TS compilers.

    As mentioned on our roadmap this is already already a work in progress.

    Version support range is documented on https://angular.dev/reference/versions

  4. UTSOURCE commented on Jul 9, 2026

    @UTSOURCE

    "Since TS 7.0 now provides stable APIs, we need to add support for its adaptation."

  5. JeanMeche commented on Jul 9, 2026

    @JeanMeche
    Member

    While TypeScript 7.0 is here, it does not ship with an API. We expect TypeScript 7.1 to ship with a new (and different) API, but until then we have made it a priority to ensure TypeScript can be run side-by-side with TypeScript 6.0 for utilities that still need some programmatic access to the compiler (such as typescript-eslint).

    https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/#running-side-by-side-with-typescript-6.0

  6. muhamedkarajic commented on Jul 9, 2026

    @muhamedkarajic

    Moved my points here #69719
    I think there was a discussion about this somewhere else but I could not find it.

  7. angular-automatic-lock-bot commented on Aug 9, 2026

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: packaging

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions