Visitar URL original
(zone.js) Promise.try is undefined · Issue #67057 · angular/angular · GitHub
Skip to content

(zone.js) Promise.try is undefined #67057

Description

@oBusk

Which @angular/* package(s) are the source of the bug?

zone.js

Is this a regression?

No

Description

In 2025 the static method Promise.try recieved wide support in browsers.

ZoneAwarePromise does not implement it.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Uncaught TypeError: Promise.try is not a function

Please provide the environment you discovered this bug in (run ng version)

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI       : 21.1.4
Angular           : 21.1.4
Node.js           : 24.13.0
Package Manager   : pnpm 10.29.3
Operating System  : win32 x64

┌───────────────────────────────────┬───────────────────┬───────────────────┐
│ Package                           │ Installed Version │ Requested Version │
├───────────────────────────────────┼───────────────────┼───────────────────┤
│ @angular/animations               │ 21.1.4            │ ^21.1.4           │
│ @angular/build                    │ 21.1.4            │ ^21.1.4           │
│ @angular/cdk                      │ 21.1.4            │ ^21.1.4           │
│ @angular/cli                      │ 21.1.4            │ ~21.1.4           │
│ @angular/common                   │ 21.1.4            │ ^21.1.4           │
│ @angular/compiler                 │ 21.1.4            │ ^21.1.4           │
│ @angular/compiler-cli             │ 21.1.4            │ ^21.1.4           │
│ @angular/core                     │ 21.1.4            │ ^21.1.4           │
│ @angular/forms                    │ 21.1.4            │ ^21.1.4           │
│ @angular/language-service         │ 21.1.4            │ ^21.1.4           │
│ @angular/localize                 │ 21.1.4            │ ^21.1.4           │
│ @angular/material                 │ 21.1.4            │ ^21.1.4           │
│ @angular/material-moment-adapter  │ 21.1.4            │ ^21.1.4           │
│ @angular/platform-browser         │ 21.1.4            │ ^21.1.4           │
│ @angular/platform-browser-dynamic │ 21.1.4            │ ^21.1.4           │
│ @angular/router                   │ 21.1.4            │ ^21.1.4           │
│ @angular/youtube-player           │ 21.1.4            │ ^21.1.4           │
│ rxjs                              │ 7.8.2             │ ^7.8.2            │
│ typescript                        │ 5.9.3             │ ~5.9.3            │
│ zone.js                           │ 0.16.0            │ ~0.16.0           │
└───────────────────────────────────┴───────────────────┴───────────────────┘

Anything else?

No response

Activity

  1. SkyZeroZx commented on Feb 13, 2026

    @SkyZeroZx
    Contributor

    If I remember correctly, zone.js has entered maintenance mode, so it will no longer receive any features or support from the new browser APIs.

  2. JeanMeche commented on Feb 13, 2026

    @JeanMeche
    Member

    zone.js is indeed in maintenance mode and likely won't receive new patchs.

    https://github.com/angular/angular/blob/main/packages/zone.js/README.md

  3. atscott commented on Feb 13, 2026

    @atscott
    Contributor

    While it won’t receive new patches, I don’t think it should destructively make APIs unavailable. We should discuss providing an unpatched version on the existing promise patch

  4. added 3 commits that reference this issue on Feb 13, 2026
    4cf4be3
    20262a0
    25140a9
  5. added this to the needsTriage milestone on Feb 16, 2026
  6. added a commit that references this issue on Feb 17, 2026
    9c1ec6c
  7. added a commit that references this issue on Feb 17, 2026
    fc557f0
  8. angular-automatic-lock-bot commented on Mar 20, 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.

  9. locked and limited conversation to collaborators on Mar 20, 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: zonesIssues related to zone.js

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions