Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to resolve the zone already loaded error in angular4?

Im trying to load my angular build from a typescript package using (dist/index.html). Its loading fine, but when im going back and again trying to load the same, its showing the below errors.

VM5485:1 Uncaught Error: Zone already loaded. at new d (:1:211206)

VM5457:1 Uncaught Error: Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten.

I tried: removing the zone.js from polyfills.ts and adding "angularfire2": "5.0.0-rc.4".

But no luck. Can someone please help

like image 465
Ani2019 Avatar asked Mar 06 '26 13:03

Ani2019


1 Answers

Adding zone.js: 0.9.0 in the package.json and run npm install. The issue will get resolved.

like image 114
Ani2019 Avatar answered Mar 09 '26 04:03

Ani2019



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!