Our pure JavaScript Scheduler component


Post by tsarmf »

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.js:16419:17) 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.js:16751:13) at Zone.prototype.runGuarded (https://localhost:4300/polyfills.js:16522:21) at Anonymous function (https://localhost:4300/polyfills.js:16505:17)"}

Post by mats »

Can you please first clarify which license you have?

Post by tsarmf »

OEM license for Commercial use of Bryntum Scheduler OC Annual Subscription
OEM Agreement for max. 50 customers

Post by saki »

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.

Post by tsarmf »

Hi,

i fixed the problem as shown in example for angular 7.
but problem is still occurs for production flag.

Both Mozilla and Edge. Chrome is ok.

Post by pmiklashevich »

If you still experience any problems with our products, please attach a small runnable testcase that shows the issue and steps to reproduce. Thanks!

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply