dominique-mueller / angular-notifier

A well designed, fully animated, highly customizable, and easy-to-use notification library for your Angular application.
https://www.npmjs.com/package/angular-notifier
MIT License
245 stars 67 forks source link

TypeError: this.finishPromiseResolver is not a function #42

Open NaLLiFFuNT opened 6 years ago

NaLLiFFuNT commented 6 years ago

Hi, sometimes i get following crash report from my bugtracker.

` TypeError: this.finishPromiseResolver is not a function

File "/usr/src/app/node_modules/angular-notifier/src/services/notifier-timer.service.js" line 60 col 1 in t.finish this.finishPromiseResolver();

File "/usr/src/app/node_modules/angular-notifier/src/services/notifier-timer.service.js" line 46 col 1 in [anonymous] _this.finish();

File "/usr/src/app/node_modules/zone.js/dist/zone.js" line 425 col 1 in t.invokeTask task.callback.apply(applyThis, applyArgs);

File "/usr/src/app/node_modules/@angular/core/@angular/core.es5.js" line 3881 col 1 in Object.onInvokeTask return delegate.invokeTask(target, task, applyThis, applyArgs);

File "/usr/src/app/node_modules/zone.js/dist/zone.js" line 424 col 1 in t.invokeTask this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, t...

File "/usr/src/app/node_modules/zone.js/dist/zone.js" line 192 col 1 in r.runTask return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);

File "/usr/src/app/node_modules/zone.js/dist/zone.js" line 499 col 1 in e.invokeTask return task.zone.runTask(task, target, args);

File "/usr/src/app/node_modules/zone.js/dist/zone.js" line 488 col 1 in ZoneTask return ZoneTask.invokeTask.apply(global, [self, this, arguments]);

File "/usr/src/app/node_modules/zone.js/dist/zone.js" line 2040 col 1 in patchTimer task.invoke.apply(this, arguments); `

I use both polyfils the lib is required. import 'web-animations-js'; import 'web-animations-js/web-animations-next.min.js'; It occurred in Google Chrome & Yandex Browser which is based on Chrome.

dominique-mueller commented 6 years ago

Hm, that's interesting ... this would mean that the timer finishes before it even starts. Any chance you can reproduce this issue, perhaps in a GitHub repo?

NaLLiFFuNT commented 6 years ago

I have no idea how users do it :) It occurs seldom but bug exists.

dominique-mueller commented 6 years ago

Weird ...

Jmfelton commented 5 years ago

are there any updates to this issue?

rwpino commented 5 years ago

Hello. I m also getting this random error, it happens when I use the service multiple times at the same time

DerekLiang commented 4 years ago

Same here. It happened on IE 11.

anc93 commented 4 years ago

Hello, firstly i want to thank you for the library. I really like the designs of the notifications. Regarding this issue, are there any updates?

gpalsingh commented 3 years ago

Any updates?

Brachacz commented 3 years ago

+1, still a problem

Stankman commented 3 years ago

+1 Still an Issue