Thanks to visit codestin.com
Credit goes to github.com

Skip to content

provideBrowserGlobalErrorListeners() forwards null error for ResizeObserver loop warning #62078

Closed
@jpfbarreira

Description

@jpfbarreira

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

Don't known / other

Is this a regression?

No

Description

When using provideBrowserGlobalErrorListeners() as described in the Angular v20 release (zoneless part), the browser warning, "ResizeObserver loop completed with undelivered notifications." is forwarded to Angular’s ErrorHandler. However, the actual error value passed into handleError() is null. This makes it impossible to handle or identify the source of the issue within a custom global error handler.

Image

I managed to find out what it was by adding an event listener:

Image

And this is the result log:
Image

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw


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

Angular CLI: 20.0.1
Node: 22.16.0
Package Manager: npm 10.9.2
OS: win32 x64

Angular: 20.0.1
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, language-service, platform-browser
... platform-browser-dynamic, router, service-worker

Package                              Version
--------------------------------------------------------------
@angular-devkit/architect            0.1902.13
@angular-devkit/build-angular        20.0.1
@angular-devkit/core                 19.2.13
@angular-devkit/schematics           19.2.13
@angular/fire                        20.0.0
@angular/google-maps                 20.0.2
@angular/material                    20.0.2
@angular/material-date-fns-adapter   20.0.2
@angular/youtube-player              20.0.2
@schematics/angular                  20.0.1
rxjs                                 7.8.2
typescript                           5.8.3

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions