-
Notifications
You must be signed in to change notification settings - Fork 407
Uncaught Error: Zone already loaded #405
Comments
+1 |
Make sure your not loading the module twice, I had it hiding in my index file:
Incidentally if you load it more than once you screw up the router a bit. You need to click your routing links multiple times when this bug arises after loading it too many times. |
EDIT: The problem was actually that I was including the script twice. Actually, I was including another script (which had zone as a dependency) twice. |
It was the same with me. If this happening to you, try removing where you include zone.js from your index.html |
This looks like a project configuration issue rather than a Zone.js bug. That said, the error message could be more helpful. It should specify the name of the zone that is already loaded or some identifying information. In my case, the stack trace pointed to three different source files in my code, none of which were really helpful. For me, this ended up being an issue with my Polymer dependencies from Bower. If I am missing a Polymer dependency, then this error occurs saying |
Angular has a terrible debug feedback ... zone not loaded ... thank you very much! Look at the quality of provided info (this is my case) ... all test pass ok, build pass ok, deploy pass and in the runtime I found this:
|
Thank you for all the information , I will try to make the error message more helpful. |
Kudos to @JiaLiPassion for attitude! |
@gandra , thank you!! |
Hmmm
|
Also getting this error running tests
|
|
fix: |
This is the problem of new firebase update, here is a solution for this error ** Step: 1** Install the lower version of firebase using this command npm install angularfire2@5.0.0-rc.4 ** Step: 2** npm install Try. |
Stack |
I was facing this problem for last few days..Now I am get out of this "zone already loaded error" from the following way....! Step 1: Degrade firebase version to lower by typing npm install angularfire2@5.0.0-rc.4 Step 2: run npm install |
Ty @rahuljograna @anoopmv6 @guillop solution is working |
thanks for your answers!! it working! |
welcome Gonzalo |
Uncaught Error: Zone already loaded. please help us..i try it npm install angularfire2@5.0.0-rc.4 and npm install also but not working |
arjun.. |
i am trying this command it's wrkng for me. npm install firebase@4.8.0 |
@JiaLiPassion wouldn't it be better to check if zone.js is already initialized? We for example use @angular/elements to create web components. And in some cases they're used inside other Angular applications. So both have to provide zone.js as dependency. |
@davidenke, sure, this has been fixed here #1093 |
@JiaLiPassion but that exposes a flag to allow users to check for themselves if zone.js is loaded, right? |
@davidenke , I have changed PR title, when the flag is true, the |
I agree, but I just remove some more link related to zone - I have seen this problem, so I just remove as well as I create |
Which is the intended process to get this fix inside a running angular 6 application? It seems that the fix is in the zone.js master branch but the latest npm release is from 8 months ago. Thanks, |
Please wait for a little more longer, the new version will be released soon. |
This error can also occur if you export symbols at the bottom of polyfills.ts and import them in another ts file of your application. |
I don't really know how it happened but I got the "
Uncaught Error: Zone already loaded
" error in my console after doing some POST petitions. The functionality it's ok, but the look of the app it changes.The text was updated successfully, but these errors were encountered: