Skip to content

No Safari support for Promise.withResolvers until v17.3 make @defer and incremental hydration unusable across all browsers #63855

Closed

Description

@chriswoodie

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

core

Is this a regression?

No

Description

I haven't seen this reported anywhere but we just did a big release where we were using some @defer blocks, only to find out that they don't work on Safari until v17.3, meaning we had to remove them all again.

We're using Zoneless in our application and all the new fresh stuff released over the last major versions (we're on v20.2 currently), and this was very disappointing to find out.

It will be years until most users are above that version, leaving incremental hydration completely unusable to us and other devs who needs to have reasonable browser support for their applications.

Is there any way @defer can be reworked to not use Promise.withResolvers, or am I missing some sort of polyfill?

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

TypeError: Promise.withResolvers is not a function. (In 'Promise.withResolvers()', 'Promise.withResolvers' is undefined)

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

Angular CLI: 20.0.6
Node: 22.12.0
Package Manager: npm 10.9.0
OS: darwin x64

Angular: 20.2.0
... build, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, platform-server, router, ssr

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.2002.0
@angular-devkit/build-angular   20.2.0
@angular-devkit/core            20.2.0
@angular-devkit/schematics      20.2.0
@angular/cli                    20.0.6
@schematics/angular             20.2.0
rxjs                            7.8.2
typescript                      5.8.3

Anything else?

No response

Activity

  1. changed the title [-]No Safari support for Promise.withResolvers until v17.3 make @defer and hydration unusable across all browsers[/-] [+]No Safari support for Promise.withResolvers until v17.3 make @defer and incremental hydration unusable across all browsers[/+] on Sep 17, 2025
  2. added a commit that references this issue on Sep 17, 2025
    96f5e9f
  3. JeanMeche commented on Sep 17, 2025

    @JeanMeche
    Member

    Promise.withResolvers is indeed "too new" for our support policy.
    I'm supprised it took 10month for someone to notice that we had Promise.resolvers in the defer block implementation.

    If we had been in september 2026 (which would make that API part of our support scope, the general recommendation to support it would be to use a polyfill).

  4. added a commit that references this issue on Sep 17, 2025
    b59069d
  5. added
    area: core
    on Sep 17, 2025
  6. added this to the needsTriage milestone on Sep 17, 2025
  7. added a commit that references this issue on Sep 17, 2025
    dcdca98
  8. added a commit that references this issue on Sep 18, 2025
    9d2f4e2
  9. added a commit that references this issue on Sep 19, 2025
    863e62b
  10. angular-automatic-lock-bot commented on Oct 18, 2025

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

  11. locked and limited conversation to collaborators on Oct 18, 2025
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: core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions