Uh oh!
There was an error while loading. Please reload this page.
fix(duplicate): fix #1081, load patch should also check the duplicate flag - #1121
Conversation
DanielNetzer
commented
Jul 29, 2018
Any new on this PR, it is highly expected fix for Angular Elements loaded in Angular applications. |
oliverdavidt
commented
Sep 21, 2018
@JiaLiPassion Any update when this will be merged? I am in the same boat as @DanielNetzer and cannot use my Angular elements in Angular applications until zone.js can be loaded more than once. |
DanielNetzer
commented
Sep 21, 2018
via email
“The Future of Web Development”
https://medium.com/@daniel.netzer7/the-future-of-web-development-9e9ff1e64dfc
you can find a solution in this article …On Fri, Sep 21, 2018, 18:04 oliverdavidt ***@***.***> wrote:
@JiaLiPassion <https://github.com/JiaLiPassion> Any update when this will
be merged? I am in the same boat as @DanielNetzer
<https://github.com/DanielNetzer> and cannot use my Angular elements in
Angular applications until zone.js can be loaded more than once.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1121 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AOP_JOXw4jQC2Lh_pWmj6gLNbt3mt_keks5udP_tgaJpZM4VlUwM>
.
|
JiaLiPassion
commented
Sep 21, 2018
@DanielNetzer, @oliverdavidt, I think we need to wait for a bit longer for the release. |
benoitjchevalier
commented
Oct 5, 2018
Any chance this could be merged into master? Right now I have a fork with that fix manually added to master so that I can get this + the customElements V1 fix (#1133) but I'm not a big fan of having to manually add stuff and rebuild, I would feel more confident if I could at least just pull master and build. |
vishnur-github
commented
Nov 23, 2018
I am using this patch, still getting ZoneAwarePromise already been patched error |
rafagsiqueira
commented
Jan 8, 2019
I tried and had the same problem. ZoneAwarePromise already been patched. |
JiaLiPassion
commented
Jan 8, 2019
@rafagsiqueira , could you post a reproduce repo? Thanks! |
JiaLiPassion
commented
Jan 8, 2019
@rafagsiqueira, @vishnur-github, could you try this branch? I test it with the following cases. Everything work fine. |
lexigren
commented
Jan 10, 2019
With this version error has disappeared, but application went in infinite reload loop. |
JiaLiPassion
commented
Jan 10, 2019
@lexigren, could you provide a reproduce repo? And could you show me the stack trace of the infinite loop? |
I can't provide repo since it's private. It happens while I'm trying to use created with angular Pixie image editor inside another angular app, only in prod mode, during execucting polyfills, when polyfill "0TWp" (which is import 'zone.js/dist/zone') runs. Instead of usual "Zone already loaded" after its execution, and bunch of executions "Zone.__load_patch" whole process starts allover again without any error. Edit: |
fix#1081,
__load_patchshould also checkduplicate flag.So when we load
zone.jsmultiple times, it will not throwZoneAwarePromise already been patchederror.