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
I'm trying to use Partytown with an Angular 13 project, but it looks like the Partytown initialisation fails because of the zone.js patching of the IntersectionObserver and MutationObserver.
It looks like the Partytown's getConstructorName function is returning an empty string for the IntersectionObserver and MutationObserver when zone.js is in use, and that breaks the mainWindow[cstrName].prototype line in the partytown-sandbox-sw.js.
Uncomment the lines in the zone-flags.ts file. That will disable the patching of the IntersectionObserver and MutationObserver. Run the project again, Partytown will then work correctly.
The text was updated successfully, but these errors were encountered:
I'm trying to use Partytown with an Angular 13 project, but it looks like the Partytown initialisation fails because of the
zone.js
patching of theIntersectionObserver
andMutationObserver
.It looks like the Partytown's
getConstructorName
function is returning an empty string for theIntersectionObserver
andMutationObserver
whenzone.js
is in use, and that breaks themainWindow[cstrName].prototype
line in thepartytown-sandbox-sw.js
.Minimal reproduction:
https://github.com/jakubsobel/partytown-zonejs-issue
Run using the
ng serve
, go to thelocalhost:4200
, you will see the problem in the console:Uncomment the lines in the
zone-flags.ts
file. That will disable the patching of theIntersectionObserver
andMutationObserver
. Run the project again, Partytown will then work correctly.The text was updated successfully, but these errors were encountered: