angular: using clearInterval() - Error timeout.close is not a function
I’m submitting a … (check one with “x”)
[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
create an interval with setInterval() then try to clear it with clearInterval()
Expected behavior
The interval would be cleared
Minimal reproduction of the problem with instructions
inside an angular 2 component class method…
`this.sessionNagInterval = setInterval(() => {
// this will open the modal
console.log('nag em');
this.authService.promptSessionTimeoutBehavior.next(startNagSeconds);
}, nagFrequencySeconds * 1000);
// create the timeout to kill the nag interval
this.sessionNagTimeout = setTimeout(() => {
console.log('stop nagging');
clearInterval(this.sessionNagInterval);
}, stopNagSeconds * 1000);`
What is the motivation / use case for changing the behavior?
I am displaying a nag screen letting the user know their session is going to expire soon
Please tell us about your environment:
Centos 7, IntelliJ, webpack 2 , webpack dev server
- Angular version: 2.0.X
2.1.0
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
chrome
- Language: [all | TypeScript X.X | ES6/7 | ES5]
typescript 2.x , ES5
- Node (for AoT issues):
node --version
error
`VM216908:54 TypeError: timeout.close is not a function
at Object.exports.clearTimeout.exports.clearInterval (eval at <anonymous> (http://localhost:8080/js/vendor.js:619:1), <anonymous>:16:53)
at eval (eval at 355 (http://localhost:8080/js/app.js:104:1), <anonymous>:68:30)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:236:37)
at Object.onInvokeTask (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:229:37)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:235:42)
at Zone.runTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:136:47)
at ZoneTask.invoke (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:304:33)
------------- Elapsed: 5015 ms; At: Wed Oct 19 2016 17:37:26 GMT-0600 (MDT) -------------
at Object.onScheduleTask (eval at 1011 (http://localhost:8080/js/polyfills.js:230:1), <anonymous>:76:18)
at ZoneDelegate.scheduleTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:213:49)
at Zone.scheduleMacroTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:153:39)
at eval (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:1195:29)
at setTimeout (eval at createNamedFn (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1)), <anonymous>:3:37)
at CurrentUserComponent.manageSessionReminder (eval at 355 (http://localhost:8080/js/app.js:104:1), <anonymous>:58:43)
at SafeSubscriber.eval [as _next](eval at 355 %28http://localhost:8080/js/app.js:104:1%29, <anonymous>:22:19)
at SafeSubscriber.__tryOrUnsub (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:223:16)
at SafeSubscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:172:22)
at Subscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:125:26)
at Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at BehaviorSubject.Subject.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:70:1), <anonymous>:55:25)
at BehaviorSubject.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:874:1), <anonymous>:44:31)
at AuthService.doNotifyLoggedInStatus (eval at 38 (http://localhost:8080/js/app.js:158:1), <anonymous>:92:29)
at eval (eval at 38 (http://localhost:8080/js/app.js:158:1), <anonymous>:114:34)
at ZoneDelegate.invoke (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:203:28)
at Object.onInvoke (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:238:37)
at ZoneDelegate.invoke (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:202:34)
at Zone.run (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:96:43)
at eval (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:462:57)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:236:37)
at Object.onInvokeTask (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:229:37)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:235:42)
at Zone.runTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:136:47)
at drainMicroTaskQueue (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:368:35)
------------- Elapsed: 37 ms; At: Wed Oct 19 2016 17:37:26 GMT-0600 (MDT) -------------
at Object.onScheduleTask (eval at 1011 (http://localhost:8080/js/polyfills.js:230:1), <anonymous>:76:18)
at ZoneDelegate.scheduleTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:213:49)
at Zone.scheduleMicroTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:150:39)
at scheduleResolveOrReject (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:460:14)
at ZoneAwarePromise.then (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:536:17)
at eval (eval at 38 (http://localhost:8080/js/app.js:158:1), <anonymous>:113:22)
at new ZoneAwarePromise (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:478:29)
at AuthService.login (eval at 38 (http://localhost:8080/js/app.js:158:1), <anonymous>:111:20)
at CurrentUserResolveService.resolve (eval at 354 (http://localhost:8080/js/app.js:96:1), <anonymous>:17:37)
at eval (eval at <anonymous> (http://localhost:8080/js/vendor.js:558:1), <anonymous>:732:150)
at eval (eval at <anonymous> (http://localhost:8080/js/vendor.js:271:1), <anonymous>:121:86)
at forEach (eval at <anonymous> (http://localhost:8080/js/vendor.js:271:1), <anonymous>:104:13)
at waitForMap (eval at <anonymous> (http://localhost:8080/js/vendor.js:271:1), <anonymous>:119:5)
at PreActivation.resolveNode (eval at <anonymous> (http://localhost:8080/js/vendor.js:558:1), <anonymous>:730:109)
at PreActivation.runResolve (eval at <anonymous> (http://localhost:8080/js/vendor.js:558:1), <anonymous>:722:81)
at MergeMapSubscriber.eval [as project](eval at <anonymous> %28http://localhost:8080/js/vendor.js:558:1%29, <anonymous>:589:30)
at MergeMapSubscriber._tryNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:110:27)
at MergeMapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>💯18)
at MergeMapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at ArrayObservable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:287:1), <anonymous>:114:28)
at ArrayObservable.Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:56:27)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at MergeMapOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:75:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at ReduceOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:902:1), <anonymous>:63:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at MapOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:54:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Object.subscribeToResult (eval at <anonymous> (http://localhost:8080/js/vendor.js:55:1), <anonymous>:21:27)
at MergeMapSubscriber._innerSub (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:120:38)
at MergeMapSubscriber._tryNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:117:14)
at MergeMapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>💯18)
at MergeMapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MergeMapSubscriber.notifyNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:133:30)
at InnerSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:4236:1), <anonymous>:23:21)
at InnerSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at EverySubscriber.notifyComplete (eval at <anonymous> (http://localhost:8080/js/vendor.js:1584:1), <anonymous>:47:26)
at EverySubscriber._complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:1584:1), <anonymous>:64:14)
at EverySubscriber.Subscriber.complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:114:18)
at MergeAllSubscriber._complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:387:1), <anonymous>:94:30)
at MergeAllSubscriber.Subscriber.complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:114:18)
at MapSubscriber.Subscriber._complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:132:26)
at MapSubscriber.Subscriber.complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:114:18)
at ArrayObservable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:287:1), <anonymous>:116:24)
at ArrayObservable.Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:56:27)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at MapOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:54:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at MergeAllOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:387:1), <anonymous>:63:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at EveryOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:1584:1), <anonymous>:27:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Object.subscribeToResult (eval at <anonymous> (http://localhost:8080/js/vendor.js:55:1), <anonymous>:21:27)
at MergeMapSubscriber._innerSub (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:120:38)
at MergeMapSubscriber._tryNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:117:14)
at MergeMapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>💯18)
at MergeMapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:83:26)
at MapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:83:26)
at MapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:83:26)
at MapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MergeMapSubscriber.notifyNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:133:30)
at InnerSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:4236:1), <anonymous>:23:21)
at InnerSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at Object.subscribeToResult (eval at <anonymous> (http://localhost:8080/js/vendor.js:55:1), <anonymous>:16:25)
at MergeMapSubscriber._innerSub (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:120:38)
at MergeMapSubscriber._tryNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:117:14)
at MergeMapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>💯18)
at MergeMapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at CatchSubscriber.Subscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:125:26)
at CatchSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:83:26)
at MapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:83:26)
at MapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:83:26)
at MapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at LastSubscriber._complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:3173:1), <anonymous>:109:25)
at LastSubscriber.Subscriber.complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:114:18)
at MergeAllSubscriber.notifyComplete (eval at <anonymous> (http://localhost:8080/js/vendor.js:387:1), <anonymous>:105:30)
at InnerSubscriber._complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:4236:1), <anonymous>:30:21)
at InnerSubscriber.Subscriber.complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:114:18)
at MapSubscriber.Subscriber._complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:132:26)
at MapSubscriber.Subscriber.complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:114:18)
at CatchSubscriber.Subscriber._complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:132:26)
at CatchSubscriber.Subscriber.complete (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:114:18)
at FirstSubscriber._emitFinal (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:133:21)
at FirstSubscriber._emit (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:117:14)
at FirstSubscriber._tryPredicate (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:109:18)
at FirstSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:93:18)
at FirstSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MergeAllSubscriber.OuterSubscriber.notifyNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:48:1), <anonymous>:19:26)
at InnerSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:4236:1), <anonymous>:23:21)
at InnerSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at CatchSubscriber.Subscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:125:26)
at CatchSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MergeMapSubscriber.notifyNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:133:30)
at InnerSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:4236:1), <anonymous>:23:21)
at InnerSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:83:26)
at MapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at CatchSubscriber.Subscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:125:26)
at CatchSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at FirstSubscriber._emitFinal (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:132:21)
at FirstSubscriber._emit (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:117:14)
at FirstSubscriber._tryPredicate (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:109:18)
at FirstSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:93:18)
at FirstSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MergeAllSubscriber.OuterSubscriber.notifyNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:48:1), <anonymous>:19:26)
at InnerSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:4236:1), <anonymous>:23:21)
at InnerSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at CatchSubscriber.Subscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:125:26)
at CatchSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MergeMapSubscriber.notifyNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:133:30)
at InnerSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:4236:1), <anonymous>:23:21)
at InnerSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:83:26)
at MapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at CatchSubscriber.Subscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:125:26)
at CatchSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at FirstSubscriber._emitFinal (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:132:21)
at FirstSubscriber._emit (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:117:14)
at FirstSubscriber._tryPredicate (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:109:18)
at FirstSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:93:18)
at FirstSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MergeAllSubscriber.OuterSubscriber.notifyNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:48:1), <anonymous>:19:26)
at InnerSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:4236:1), <anonymous>:23:21)
at InnerSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at CatchSubscriber.Subscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:125:26)
at CatchSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MergeMapSubscriber.notifyNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:133:30)
at InnerSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:4236:1), <anonymous>:23:21)
at InnerSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at Object.subscribeToResult (eval at <anonymous> (http://localhost:8080/js/vendor.js:55:1), <anonymous>:16:25)
at MergeMapSubscriber._innerSub (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:120:38)
at MergeMapSubscriber._tryNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:117:14)
at MergeMapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>💯18)
at MergeMapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at ScalarObservable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:1542:1), <anonymous>:49:24)
at ScalarObservable.Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:56:27)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at MergeMapOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:75:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at CatchOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:1549:1), <anonymous>:30:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Object.subscribeToResult (eval at <anonymous> (http://localhost:8080/js/vendor.js:55:1), <anonymous>:21:27)
at MergeAllSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:387:1), <anonymous>:85:42)
at MergeAllSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:83:26)
at MapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at ArrayObservable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:287:1), <anonymous>:114:28)
at ArrayObservable.Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:56:27)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at MapOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:54:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at MergeAllOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:387:1), <anonymous>:63:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at FirstOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:3166:1), <anonymous>:70:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at CatchOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:1549:1), <anonymous>:30:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Observable._subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:114:28)
at MapOperator.call (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:54:23)
at Observable.subscribe (eval at <anonymous> (http://localhost:8080/js/vendor.js:13:1), <anonymous>:53:22)
at Object.subscribeToResult (eval at <anonymous> (http://localhost:8080/js/vendor.js:55:1), <anonymous>:21:27)
at MergeMapSubscriber._innerSub (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:120:38)
at MergeMapSubscriber._tryNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:117:14)
at MergeMapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>💯18)
at MergeMapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MergeMapSubscriber.notifyNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:133:30)
at InnerSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:4236:1), <anonymous>:23:21)
at InnerSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:83:26)
at MapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:380:1), <anonymous>:83:26)
at MapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at MergeMapSubscriber.notifyNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:133:30)
at InnerSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:4236:1), <anonymous>:23:21)
at InnerSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at eval (eval at <anonymous> (http://localhost:8080/js/vendor.js:3131:1), <anonymous>:66:36)
at ZoneDelegate.invoke (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:203:28)
at Object.onInvoke (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:238:37)
at ZoneDelegate.invoke (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:202:34)
at Zone.run (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:96:43)
at eval (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:462:57)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:236:37)
at Object.onInvokeTask (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:229:37)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:235:42)
at Zone.runTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:136:47)
at drainMicroTaskQueue (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:368:35)
------------- Elapsed: 39 ms; At: Wed Oct 19 2016 17:37:26 GMT-0600 (MDT) -------------
at Object.onScheduleTask (eval at 1011 (http://localhost:8080/js/polyfills.js:230:1), <anonymous>:76:18)
at ZoneDelegate.scheduleTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:213:49)
at Zone.scheduleMicroTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:150:39)
at scheduleResolveOrReject (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:460:14)
at resolvePromise (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:424:21)
at eval (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:462:17)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:236:37)
at Object.onInvokeTask (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:229:37)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:235:42)
at Zone.runTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:136:47)
at drainMicroTaskQueue (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:368:35)
------------- Elapsed: 0 ms; At: Wed Oct 19 2016 17:37:26 GMT-0600 (MDT) -------------
at Object.onScheduleTask (eval at 1011 (http://localhost:8080/js/polyfills.js:230:1), <anonymous>:76:18)
at ZoneDelegate.scheduleTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:213:49)
at Zone.scheduleMicroTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:150:39)
at scheduleResolveOrReject (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:460:14)
at resolvePromise (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:424:21)
at eval (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:462:17)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:236:37)
at Object.onInvokeTask (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:229:37)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:235:42)
at Zone.runTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:136:47)
at drainMicroTaskQueue (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:368:35)
------------- Elapsed: 66 ms; At: Wed Oct 19 2016 17:37:26 GMT-0600 (MDT) -------------
at Object.onScheduleTask (eval at 1011 (http://localhost:8080/js/polyfills.js:230:1), <anonymous>:76:18)
at ZoneDelegate.scheduleTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:213:49)
at Zone.scheduleMicroTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:150:39)
at scheduleResolveOrReject (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:460:14)
at ZoneAwarePromise.then (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:536:17)
at RuntimeCompiler._compileComponents (eval at <anonymous> (http://localhost:8080/js/vendor.js:1794:1), <anonymous>:179:49)
at RuntimeCompiler._compileModuleAndComponents (eval at <anonymous> (http://localhost:8080/js/vendor.js:1794:1), <anonymous>:86:37)
at RuntimeCompiler.compileModuleAsync (eval at <anonymous> (http://localhost:8080/js/vendor.js:1794:1), <anonymous>:77:21)
at ModuleBoundCompiler.compileModuleAsync (eval at <anonymous> (http://localhost:8080/js/vendor.js:1794:1), <anonymous>:398:31)
at MergeMapSubscriber.eval [as project](eval at <anonymous> %28http://localhost:8080/js/vendor.js:565:1%29, <anonymous>:57:440)
at MergeMapSubscriber._tryNext (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>:110:27)
at MergeMapSubscriber._next (eval at <anonymous> (http://localhost:8080/js/vendor.js:450:1), <anonymous>💯18)
at MergeMapSubscriber.Subscriber.next (eval at <anonymous> (http://localhost:8080/js/vendor.js:26:1), <anonymous>:89:18)
at eval (eval at <anonymous> (http://localhost:8080/js/vendor.js:3131:1), <anonymous>:66:36)
at ZoneDelegate.invoke (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:203:28)
at Object.onInvoke (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:238:37)
at ZoneDelegate.invoke (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:202:34)
at Zone.run (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:96:43)
at eval (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:462:57)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:236:37)
at Object.onInvokeTask (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:229:37)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:235:42)
at Zone.runTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:136:47)
at drainMicroTaskQueue (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:368:35)
------------- Elapsed: 21 ms; At: Wed Oct 19 2016 17:37:26 GMT-0600 (MDT) -------------
at Object.onScheduleTask (eval at 1011 (http://localhost:8080/js/polyfills.js:230:1), <anonymous>:76:18)
at ZoneDelegate.scheduleTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:213:49)
at Zone.scheduleMicroTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:150:39)
at scheduleResolveOrReject (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:460:14)
at resolvePromise (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:424:21)
at eval (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:406:13)
at eval (eval at 647 (http://localhost:8080/js/app.js:197:1), <anonymous>:30:218)
at ZoneDelegate.invoke (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:203:28)
at Object.onInvoke (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:238:37)
at ZoneDelegate.invoke (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:202:34)
at Zone.run (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:96:43)
at eval (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:462:57)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:236:37)
at Object.onInvokeTask (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:229:37)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:235:42)
at Zone.runTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:136:47)
at drainMicroTaskQueue (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:368:35)
------------- Elapsed: 3 ms; At: Wed Oct 19 2016 17:37:26 GMT-0600 (MDT) -------------
at Object.onScheduleTask (eval at 1011 (http://localhost:8080/js/polyfills.js:230:1), <anonymous>:76:18)
at ZoneDelegate.scheduleTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:213:49)
at Zone.scheduleMicroTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:150:39)
at scheduleResolveOrReject (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:460:14)
at resolvePromise (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:424:21)
at eval (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:462:17)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:236:37)
at Object.onInvokeTask (eval at <anonymous> (http://localhost:8080/js/vendor.js:1192:1), <anonymous>:229:37)
at ZoneDelegate.invokeTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:235:42)
at Zone.runTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:136:47)
at drainMicroTaskQueue (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:368:35)
------------- Elapsed: 1 ms; At: Wed Oct 19 2016 17:37:26 GMT-0600 (MDT) -------------
at Object.onScheduleTask (eval at 1011 (http://localhost:8080/js/polyfills.js:230:1), <anonymous>:76:18)
at ZoneDelegate.scheduleTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:213:49)
at Zone.scheduleMicroTask (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:150:39)
at scheduleResolveOrReject (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:460:14)
at resolvePromise (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:424:21)
at eval (eval at 1012 (http://localhost:8080/js/polyfills.js:237:1), <anonymous>:406:13)
at webpackJsonpCallback (http://localhost:8080/js/polyfills.js:21:29)
at http://localhost:8080/0.chunk.js:1:1`
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 24 (3 by maintainers)
Well, turns out my IDE betray me! Using IntelliJ IDEA. At some point when I was coding this up my IDE added this import " import { clearInterval } from ‘timers’; " to my file. I have no idea what the timers module is but once I removed that import everything works
Lifesaver… same thing was happening to me. I am using Visual Code
For anyone who wants to disable this feature, you can add this to your settings file:
Thanks. What the…VSCode!! It took more than one hour to debug this problem!
Me too! I’m using Visual Studio Code. Thanks for your help, guys!
Same problem! After removing --> import { clearInterval } from ‘timers’; worked for me.