Skip to content

Instantly share code, notes, and snippets.

@marinho
Created October 21, 2016 02:23
Show Gist options
  • Save marinho/d4a0659aefca97bee13281faedb18379 to your computer and use it in GitHub Desktop.
Save marinho/d4a0659aefca97bee13281faedb18379 to your computer and use it in GitHub Desktop.
Exported console log output for debugging in Angular 2
2016-10-21 04:06:05 Device API logging initialized - DEVICE
Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
EXCEPTION: Uncaught (in promise): TypeError: Cannot read property 'indexOf' of undefined
ORIGINAL STACKTRACE:
Error: Uncaught (in promise): TypeError: Cannot read property 'indexOf' of undefined
at resolvePromise (http://localhost:3000/polyfills.bundle.js:17988:31)
at http://localhost:3000/polyfills.bundle.js:18024:17
at ZoneDelegate.invokeTask (http://localhost:3000/polyfills.bundle.js:17795:37)
at Object.onInvokeTask (http://localhost:3000/vendor.bundle.js:36127:37)
at ZoneDelegate.invokeTask (http://localhost:3000/polyfills.bundle.js:17794:42)
at Zone.runTask (http://localhost:3000/polyfills.bundle.js:17695:47)
at drainMicroTaskQueue (http://localhost:3000/polyfills.bundle.js:17927:35)
at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/polyfills.bundle.js:17867:25)
------------- Elapsed: 7 ms; At: Fri Oct 21 2016 04:06:10 GMT+0200 (CEST) -------------
at Object.onScheduleTask (http://localhost:3000/polyfills.bundle.js:17496:22)
at ZoneDelegate.scheduleTask (http://localhost:3000/polyfills.bundle.js:17772:49)
at Zone.scheduleMicroTask (http://localhost:3000/polyfills.bundle.js:17709:39)
at scheduleResolveOrReject (http://localhost:3000/polyfills.bundle.js:18019:14)
at resolvePromise (http://localhost:3000/polyfills.bundle.js:17983:21)
at SafeSubscriber._complete (http://localhost:3000/polyfills.bundle.js:17965:13)
at SafeSubscriber.__tryOrUnsub (http://localhost:3000/vendor.bundle.js:64255:16)
at SafeSubscriber.complete (http://localhost:3000/vendor.bundle.js:64240:26)
at Subscriber._complete (http://localhost:3000/vendor.bundle.js:64164:26)
at Subscriber.complete (http://localhost:3000/vendor.bundle.js:64146:18)
at MergeMapSubscriber._complete (http://localhost:3000/vendor.bundle.js:67876:30)
at MergeMapSubscriber.Subscriber.complete (http://localhost:3000/vendor.bundle.js:64146:18)
at MergeMapSubscriber.notifyComplete (http://localhost:3000/vendor.bundle.js:67906:30)
at InnerSubscriber._complete (http://localhost:3000/vendor.bundle.js:63330:21)
at InnerSubscriber.Subscriber.complete (http://localhost:3000/vendor.bundle.js:64146:18)
at EverySubscriber.notifyComplete (http://localhost:3000/vendor.bundle.js:66836:26)
at EverySubscriber._complete (http://localhost:3000/vendor.bundle.js:66852:14)
at EverySubscriber.Subscriber.complete (http://localhost:3000/vendor.bundle.js:64146:18)
at MergeAllSubscriber.notifyComplete (http://localhost:3000/vendor.bundle.js:67738:30)
at InnerSubscriber._complete (http://localhost:3000/vendor.bundle.js:63330:21)
at InnerSubscriber.Subscriber.complete (http://localhost:3000/vendor.bundle.js:64146:18)
at EverySubscriber.notifyComplete (http://localhost:3000/vendor.bundle.js:66836:26)
at EverySubscriber._complete (http://localhost:3000/vendor.bundle.js:66852:14)
at EverySubscriber.Subscriber.complete (http://localhost:3000/vendor.bundle.js:64146:18)
at MergeAllSubscriber.notifyComplete (http://localhost:3000/vendor.bundle.js:67738:30)
at InnerSubscriber._complete (http://localhost:3000/vendor.bundle.js:63330:21)
at InnerSubscriber.Subscriber.complete (http://localhost:3000/vendor.bundle.js:64146:18)
at EverySubscriber.notifyComplete (http://localhost:3000/vendor.bundle.js:66836:26)
at EverySubscriber._complete (http://localhost:3000/vendor.bundle.js:66852:14)
at EverySubscriber.Subscriber.complete (http://localhost:3000/vendor.bundle.js:64146:18)
at MergeAllSubscriber.notifyComplete (http://localhost:3000/vendor.bundle.js:67738:30)
at InnerSubscriber._complete (http://localhost:3000/vendor.bundle.js:63330:21)
at InnerSubscriber.Subscriber.complete (http://localhost:3000/vendor.bundle.js:64146:18)
at FirstSubscriber._emitFinal (http://localhost:3000/vendor.bundle.js:67153:21)
at FirstSubscriber._emit (http://localhost:3000/vendor.bundle.js:67137:14)
at FirstSubscriber._next (http://localhost:3000/vendor.bundle.js:67116:18)
at FirstSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at MapSubscriber._next (http://localhost:3000/vendor.bundle.js:67622:26)
at MapSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at FilterSubscriber._next (http://localhost:3000/main.bundle.js:33743:30)
at FilterSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at DistinctUntilChangedSubscriber._next (http://localhost:3000/vendor.bundle.js:66657:30)
at DistinctUntilChangedSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at MapSubscriber._next (http://localhost:3000/vendor.bundle.js:67622:26)
at MapSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at SwitchMapSubscriber.notifyNext (http://localhost:3000/vendor.bundle.js:68734:30)
at InnerSubscriber._next (http://localhost:3000/vendor.bundle.js:63323:21)
at InnerSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at Array.r (<anonymous>:1:17940)
at Object.dispatch (http://localhost:3000/main.bundle.js:33396:19)
at Object.dispatch (<anonymous>:1:17756)
at NgRedux.dispatch (http://localhost:3000/main.bundle.js:31198:33)
at SafeSubscriber._next (http://localhost:3000/main.bundle.js:49422:27)
at SafeSubscriber.__tryOrSetError (http://localhost:3000/vendor.bundle.js:64264:16)
at SafeSubscriber.next (http://localhost:3000/vendor.bundle.js:64206:27)
at Subscriber._next (http://localhost:3000/vendor.bundle.js:64157:26)
at Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at MapSubscriber._next (http://localhost:3000/vendor.bundle.js:67622:26)
at MapSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at Observable._subscribe (http://localhost:3000/main.bundle.js:53098:26)
at Observable.subscribe (http://localhost:3000/vendor.bundle.js:63533:27)
at Observable._subscribe (http://localhost:3000/vendor.bundle.js:63591:28)
at MapOperator.call (http://localhost:3000/vendor.bundle.js:67593:23)
at Observable.subscribe (http://localhost:3000/vendor.bundle.js:63530:22)
at AdminActions.loadFeatures (http://localhost:3000/main.bundle.js:49421:14)
at AppComponent.initializeFeatures (http://localhost:3000/main.bundle.js:34984:27)
at SafeSubscriber._next (http://localhost:3000/main.bundle.js:34966:23)
at SafeSubscriber.__tryOrUnsub (http://localhost:3000/vendor.bundle.js:64255:16)
at SafeSubscriber.next (http://localhost:3000/vendor.bundle.js:64204:22)
at Subscriber._next (http://localhost:3000/vendor.bundle.js:64157:26)
at Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at DistinctUntilChangedSubscriber._next (http://localhost:3000/vendor.bundle.js:66657:30)
at DistinctUntilChangedSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at MapSubscriber._next (http://localhost:3000/vendor.bundle.js:67622:26)
at MapSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at SwitchMapSubscriber.notifyNext (http://localhost:3000/vendor.bundle.js:68734:30)
at InnerSubscriber._next (http://localhost:3000/vendor.bundle.js:63323:21)
at InnerSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at Array.r (<anonymous>:1:17940)
at Object.dispatch (http://localhost:3000/main.bundle.js:33396:19)
at Object.dispatch (<anonymous>:1:17756)
at NgRedux.dispatch (http://localhost:3000/main.bundle.js:31198:33)
at SafeSubscriber.c4re.findRoles.subscribe._this.ngRedux.dispatch.type [as _next] (http://localhost:3000/main.bundle.js:49493:27)
at SafeSubscriber.__tryOrUnsub (http://localhost:3000/vendor.bundle.js:64255:16)
at SafeSubscriber.next (http://localhost:3000/vendor.bundle.js:64204:22)
at Subscriber._next (http://localhost:3000/vendor.bundle.js:64157:26)
at Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at MapSubscriber._next (http://localhost:3000/vendor.bundle.js:67622:26)
at MapSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at XMLHttpRequest.onLoad (http://localhost:3000/vendor.bundle.js:42331:38)
at ZoneDelegate.invokeTask (http://localhost:3000/polyfills.bundle.js:17795:37)
at Object.onInvokeTask (http://localhost:3000/vendor.bundle.js:36127:37)
at ZoneDelegate.invokeTask (http://localhost:3000/polyfills.bundle.js:17794:42)
at Zone.runTask (http://localhost:3000/polyfills.bundle.js:17695:47)
at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/polyfills.bundle.js:17863:33)
------------- Elapsed: 499 ms; At: Fri Oct 21 2016 04:06:09 GMT+0200 (CEST) -------------
at Object.onScheduleTask (http://localhost:3000/polyfills.bundle.js:17496:22)
at ZoneDelegate.scheduleTask (http://localhost:3000/polyfills.bundle.js:17772:49)
at Zone.scheduleEventTask (http://localhost:3000/polyfills.bundle.js:17715:39)
at zoneAwareAddEventListener (http://localhost:3000/polyfills.bundle.js:18317:10)
at XMLHttpRequest.addEventListener (eval at createNamedFn (http://localhost:3000/polyfills.bundle.js:18411:17), <anonymous>:3:43)
at Observable._subscribe (http://localhost:3000/vendor.bundle.js:42374:18)
at Observable.subscribe (http://localhost:3000/vendor.bundle.js:63533:27)
at Observable._subscribe (http://localhost:3000/vendor.bundle.js:63591:28)
at MapOperator.call (http://localhost:3000/vendor.bundle.js:67593:23)
at Observable.subscribe (http://localhost:3000/vendor.bundle.js:63530:22)
at AuthorisationActions.getUserRoles (http://localhost:3000/main.bundle.js:49492:14)
at AppComponent.ngOnInit (http://localhost:3000/main.bundle.js:34958:35)
at DebugAppView._View_AppComponent_Host0.detectChangesInternal (AppComponent_Host.ngfactory.js:29:81)
at DebugAppView.AppView.detectChanges (http://localhost:3000/vendor.bundle.js:32990:14)
at DebugAppView.detectChanges (http://localhost:3000/vendor.bundle.js:33095:44)
at ViewRef_.detectChanges (http://localhost:3000/vendor.bundle.js:33481:20)
at http://localhost:3000/vendor.bundle.js:26236:84
at Array.forEach (native)
at ApplicationRef_.tick (http://localhost:3000/vendor.bundle.js:26236:38)
at ApplicationRef_._loadComponent (http://localhost:3000/vendor.bundle.js:26214:14)
at ApplicationRef_.bootstrap (http://localhost:3000/vendor.bundle.js:26205:14)
at http://localhost:3000/vendor.bundle.js:26107:89
at Array.forEach (native)
at PlatformRef_._moduleDoBootstrap (http://localhost:3000/vendor.bundle.js:26107:42)
at http://localhost:3000/vendor.bundle.js:26075:27
at ZoneDelegate.invoke (http://localhost:3000/polyfills.bundle.js:17762:28)
at Object.onInvoke (http://localhost:3000/vendor.bundle.js:36136:37)
at ZoneDelegate.invoke (http://localhost:3000/polyfills.bundle.js:17761:34)
at Zone.run (http://localhost:3000/polyfills.bundle.js:17655:43)
at http://localhost:3000/polyfills.bundle.js:18021:57
at ZoneDelegate.invokeTask (http://localhost:3000/polyfills.bundle.js:17795:37)
at Object.onInvokeTask (http://localhost:3000/vendor.bundle.js:36127:37)
at ZoneDelegate.invokeTask (http://localhost:3000/polyfills.bundle.js:17794:42)
at Zone.runTask (http://localhost:3000/polyfills.bundle.js:17695:47)
at drainMicroTaskQueue (http://localhost:3000/polyfills.bundle.js:17927:35)
at HTMLDocument.ZoneTask.invoke (http://localhost:3000/polyfills.bundle.js:17867:25)
------------- Elapsed: 26 ms; At: Fri Oct 21 2016 04:06:09 GMT+0200 (CEST) -------------
at Object.onScheduleTask (http://localhost:3000/polyfills.bundle.js:17496:22)
at ZoneDelegate.scheduleTask (http://localhost:3000/polyfills.bundle.js:17772:49)
at Zone.scheduleMicroTask (http://localhost:3000/polyfills.bundle.js:17709:39)
at scheduleResolveOrReject (http://localhost:3000/polyfills.bundle.js:18019:14)
at resolvePromise (http://localhost:3000/polyfills.bundle.js:17983:21)
at http://localhost:3000/polyfills.bundle.js:18021:17
at ZoneDelegate.invokeTask (http://localhost:3000/polyfills.bundle.js:17795:37)
at Object.onInvokeTask (http://localhost:3000/vendor.bundle.js:36127:37)
at ZoneDelegate.invokeTask (http://localhost:3000/polyfills.bundle.js:17794:42)
at Zone.runTask (http://localhost:3000/polyfills.bundle.js:17695:47)
at drainMicroTaskQueue (http://localhost:3000/polyfills.bundle.js:17927:35)
at HTMLDocument.ZoneTask.invoke (http://localhost:3000/polyfills.bundle.js:17867:25)
------------- Elapsed: 7 ms; At: Fri Oct 21 2016 04:06:09 GMT+0200 (CEST) -------------
at Object.onScheduleTask (http://localhost:3000/polyfills.bundle.js:17496:22)
at ZoneDelegate.scheduleTask (http://localhost:3000/polyfills.bundle.js:17772:49)
at Zone.scheduleMicroTask (http://localhost:3000/polyfills.bundle.js:17709:39)
at scheduleResolveOrReject (http://localhost:3000/polyfills.bundle.js:18019:14)
at ZoneAwarePromise.then (http://localhost:3000/polyfills.bundle.js:18095:17)
at new ApplicationInitStatus (http://localhost:3000/vendor.bundle.js:25683:60)
at NgModuleInjector.AppModuleInjector.createInternal (AppModule.ngfactory.js:658:36)
at NgModuleInjector.create (http://localhost:3000/vendor.bundle.js:32328:76)
at NgModuleFactory.create (http://localhost:3000/vendor.bundle.js:32313:18)
at http://localhost:3000/vendor.bundle.js:26065:43
at ZoneDelegate.invoke (http://localhost:3000/polyfills.bundle.js:17762:28)
at Object.onInvoke (http://localhost:3000/vendor.bundle.js:36136:37)
at ZoneDelegate.invoke (http://localhost:3000/polyfills.bundle.js:17761:34)
at Zone.run (http://localhost:3000/polyfills.bundle.js:17655:43)
at NgZoneImpl.runInner (http://localhost:3000/vendor.bundle.js:36163:71)
at NgZone.run (http://localhost:3000/vendor.bundle.js:36064:66)
at PlatformRef_._bootstrapModuleFactoryWithZone (http://localhost:3000/vendor.bundle.js:26063:23)
at http://localhost:3000/vendor.bundle.js:26102:59
at ZoneDelegate.invoke (http://localhost:3000/polyfills.bundle.js:17762:28)
at Zone.run (http://localhost:3000/polyfills.bundle.js:17655:43)
at http://localhost:3000/polyfills.bundle.js:18021:57
at ZoneDelegate.invokeTask (http://localhost:3000/polyfills.bundle.js:17795:37)
at Zone.runTask (http://localhost:3000/polyfills.bundle.js:17695:47)
at drainMicroTaskQueue (http://localhost:3000/polyfills.bundle.js:17927:35)
at HTMLDocument.ZoneTask.invoke (http://localhost:3000/polyfills.bundle.js:17867:25)
Unhandled Promise rejection: Cannot read property 'indexOf' of undefined ; Zone: angular ; Task: Promise.then ; Value: TypeError: Cannot read property 'indexOf' of undefined(…) TypeError: Cannot read property 'indexOf' of undefined
at exports.default (http://localhost:3000/main.bundle.js:51618:46)
at combination (http://localhost:3000/main.bundle.js:33146:29)
at i (<anonymous>:1:14133)
at u (<anonymous>:1:14419)
at <anonymous>:1:17314
at Object.dispatch (http://localhost:3000/main.bundle.js:33389:22)
at Object.dispatch (<anonymous>:1:17756)
at NgRedux.dispatch (http://localhost:3000/main.bundle.js:31198:33)
at SafeSubscriber._next (http://localhost:3000/main.bundle.js:51515:27)
at SafeSubscriber.__tryOrSetError (http://localhost:3000/vendor.bundle.js:64264:16)
at SafeSubscriber.next (http://localhost:3000/vendor.bundle.js:64206:27)
at Subscriber._next (http://localhost:3000/vendor.bundle.js:64157:26)
at Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at CatchSubscriber.Subscriber._next (http://localhost:3000/vendor.bundle.js:64157:26)
at CatchSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at MergeAllSubscriber.OuterSubscriber.notifyNext (http://localhost:3000/vendor.bundle.js:63658:26)
at InnerSubscriber._next (http://localhost:3000/vendor.bundle.js:63323:21)
at InnerSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at Object.subscribeToResult (http://localhost:3000/vendor.bundle.js:69860:25)
at MergeAllSubscriber._next (http://localhost:3000/vendor.bundle.js:67718:42)
at MergeAllSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at ArrayObservable._subscribe (http://localhost:3000/vendor.bundle.js:65039:28)
at ArrayObservable.Observable.subscribe (http://localhost:3000/vendor.bundle.js:63533:27)
at Observable._subscribe (http://localhost:3000/vendor.bundle.js:63591:28)
at MergeAllOperator.call (http://localhost:3000/vendor.bundle.js:67696:23)
at Observable.subscribe (http://localhost:3000/vendor.bundle.js:63530:22)
at Observable._subscribe (http://localhost:3000/vendor.bundle.js:63591:28)
at CatchOperator.call (http://localhost:3000/vendor.bundle.js:66041:23)
at Observable.subscribe (http://localhost:3000/vendor.bundle.js:63530:22)
at NavigationActions.selectNavigationItem (http://localhost:3000/main.bundle.js:51514:14)
at updateNavigation (http://localhost:3000/main.bundle.js:43991:41)
at SafeSubscriber._next (http://localhost:3000/main.bundle.js:44007:45)
at SafeSubscriber.__tryOrUnsub (http://localhost:3000/vendor.bundle.js:64255:16)
at SafeSubscriber.next (http://localhost:3000/vendor.bundle.js:64204:22)
at Subscriber._next (http://localhost:3000/vendor.bundle.js:64157:26)
at Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at FilterSubscriber._next (http://localhost:3000/main.bundle.js:33743:30)
at FilterSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at TakeUntilSubscriber.Subscriber._next (http://localhost:3000/vendor.bundle.js:64157:26)
at TakeUntilSubscriber.Subscriber.next (http://localhost:3000/vendor.bundle.js:64121:18)
at Subject.next (http://localhost:3000/vendor.bundle.js:63873:25)
at resolveData$.forEach.then._this.navigated (http://localhost:3000/vendor.bundle.js:51605:40)
at ZoneDelegate.invoke (http://localhost:3000/polyfills.bundle.js:17762:28)
at Object.onInvoke (http://localhost:3000/vendor.bundle.js:36136:37)
at ZoneDelegate.invoke (http://localhost:3000/polyfills.bundle.js:17761:34)
at Zone.run (http://localhost:3000/polyfills.bundle.js:17655:43)
at http://localhost:3000/polyfills.bundle.js:18021:57
at ZoneDelegate.invokeTask (http://localhost:3000/polyfills.bundle.js:17795:37)
at Object.onInvokeTask (http://localhost:3000/vendor.bundle.js:36127:37)
at ZoneDelegate.invokeTask (http://localhost:3000/polyfills.bundle.js:17794:42)
at Zone.runTask (http://localhost:3000/polyfills.bundle.js:17695:47)
at drainMicroTaskQueue (http://localhost:3000/polyfills.bundle.js:17927:35)
at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/polyfills.bundle.js:17867:25)
Error: Uncaught (in promise): TypeError: Cannot read property 'indexOf' of undefined(…)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment