Hi,
I am trying to run scheduler in Edge and IE11
But i get this Error. I saw it has been asked before. But moving
import 'zone.js/dist/zone'; // Included with Angular CLI.
to main did not reslove it for me.
---
Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.
Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)
Scheduler version is 3.0.3 - Angular 7
What can i prepare for you to give you more insight?
This error i pop up on refresh.
[object Error]: {description: "Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten. Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)", message: "Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten. Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)", stack: "Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten. Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.) at Zone.assertZonePatched (https://localhost:4300/polyfills.js17) at NgZone (https://localhost:4300/vendor.js:84984:9) at getNgZone (https://localhost:4300/vendor.js:85841:9) at PlatformRef.prototype.bootstrapModuleFactory (https://localhost:4300/vendor.js:85720:9) at Anonymous function (https://localhost:4300/vendor.js:85772:36) at Anonymous function (https://localhost:4300/main.js:159647:13) at flush (https://localhost:4300/main.js:156158:9) at ZoneDelegate.prototype.invoke (https://localhost:4300/polyfills.js13) at Zone.prototype.runGuarded (https://localhost:4300/polyfills.js21) at Anonymous function (https://localhost:4300/polyfills.js17)"}
Support Forum
Try to search the sources and config files if zone.js is still not imported elsewhere before the Scheduler is loaded. Our standard main.ts loads first AppModule, which in turn loads the scheduler.umd.js which contains that promise polyfill, and then loads zone.js. The key is to load zone.js after the scheduler.
If nothing else helps, give us please your code and we'll study/run/debug it.
If nothing else helps, give us please your code and we'll study/run/debug it.