Async SVG files could not be loaded when the zone.js is present as peer dependency #55634
Labels
area: zones
needs reproduction
This issue needs a reproduction in order for the team to investigate further
Milestone
Which @angular/* package(s) are the source of the bug?
zone.js
Is this a regression?
No
Description
Async files was not loaded when the zone.js is present in the same project.
Inside the file: zone.js:~1712 when the globalZoneAwareCallback is commented the async files could be loaded again:
In my another library the SVG files are loaded with this approach:
So, basically some error occurs and the file is not loaded because the zone.js XHR/Event prototyping.
We are not using the zone.js directly in the project, we are using the "@grafana/faro-web-tracing" dependency, that´s load the "@opentelemetry/context-zone", and filanny this last one uses the "zone.js" dependency to work.
Here some UI examples with the code NOT commented and commented respectivelly:
*Zone.js native code - (globalZoneAwareCallback not commented)
*Zone.js native code - (with globalZoneAwareCallback commented)
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
In resume if I only import the zone.js directly in my project, the SVG Loading using the async import does´t working. I mean, isn´t necessary import the "@grafana/faro-sdk" to reproduce this issue.
No response
The text was updated successfully, but these errors were encountered: