You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
// global shared zoneAwareCallback to handle all event callback with capture = false
const globalZoneAwareCallback = function (event) {
//return globalCallback(this, event, false);
};
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)
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)
React 17.0.2
Node: 14.21.3
Package Manager: npm 6.4.18
OS: Windows64 / Linux 64
Project using "@grafana/faro-web-tracing" => "@opentelemetry/context-zone" => "zone.js"
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:
Hi, could you provide a stackblitz or a github repo that reproduces the issue. That would help for the investigation of the issue, thank you.
alan-agius4
changed the title
Async SVG files could not be loaded when the zone.js is present as peed dependency
Async SVG files could not be loaded when the zone.js is present as peer dependency
May 2, 2024
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: