gmostert / ng2-breadcrumb

This is an angular 2 component that creates a breadcrumb trail. It hooks into the angular2/router, to dynamically build up the crumb trail once a component is routed to.
MIT License
102 stars 81 forks source link

TypeError: Cannot read property 'lastIndexOf' of undefined #57

Closed kernwig closed 7 years ago

kernwig commented 7 years ago

Since switching to Angular 4, this pops up sometimes. I haven't figured a clear pattern as to when.

It looks like BreadcrumbComponent.ngOnInit()'s subscription to router events is receiving something other than a NavigationEnd instance. Indeed you are subscribing to something defined as Observable<Event> "An observable of router events", so assuming that it will be a NavigationEnd would seem incorrect.

ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'lastIndexOf' of undefined TypeError: Cannot read property 'lastIndexOf' of undefined at BreadcrumbComponent.generateBreadcrumbTrail (http://dev:3000/vendor.bundle.js:18890:16) at SafeSubscriber._next (http://dev:3000/vendor.bundle.js:18875:19) at SafeSubscriber.__tryOrUnsub (http://dev:3000/vendor.dll.js:459:16) at SafeSubscriber.next (http://dev:3000/vendor.dll.js:408:22) at Subscriber._next (http://dev:3000/vendor.dll.js:348:26) at Subscriber.next (http://dev:3000/vendor.dll.js:312:18) at Subject.next (http://dev:3000/vendor.dll.js:673:25) at Router.triggerEvent (http://dev:3000/vendor.dll.js:41572:70) at RouterConfigLoader.onLoadStart [as onLoadStartListener] (http://dev:3000/vendor.dll.js:41492:55) at RouterConfigLoader.load (http://dev:3000/vendor.dll.js:38375:18) at MergeMapSubscriber.project (http://dev:3000/vendor.dll.js:39460:107) at MergeMapSubscriber._tryNext (http://dev:3000/vendor.dll.js:26016:27) at MergeMapSubscriber._next (http://dev:3000/vendor.dll.js:26006:18) at MergeMapSubscriber.Subscriber.next (http://dev:3000/vendor.dll.js:312:18) at EverySubscriber.notifyComplete (http://dev:3000/vendor.dll.js:27852:26) at EverySubscriber._complete (http://dev:3000/vendor.dll.js:27869:14) at EverySubscriber.Subscriber.complete (http://dev:3000/vendor.dll.js:337:18) at MergeAllSubscriber._complete (http://dev:3000/vendor.dll.js:20457:30) at MergeAllSubscriber.Subscriber.complete (http://dev:3000/vendor.dll.js:337:18) at MapSubscriber.Subscriber._complete (http://dev:3000/vendor.dll.js:355:26) at MapSubscriber.Subscriber.complete (http://dev:3000/vendor.dll.js:337:18) at ArrayObservable._subscribe (http://dev:3000/vendor.dll.js:1237:24) at ArrayObservable.Observable._trySubscribe (http://dev:3000/vendor.dll.js:131:25) at ArrayObservable.Observable.subscribe (http://dev:3000/vendor.dll.js:119:27) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeAllOperator.call (http://dev:3000/vendor.dll.js:20426:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at EveryOperator.call (http://dev:3000/vendor.dll.js:27832:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at CatchOperator.call (http://dev:3000/vendor.dll.js:27504:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at Object.subscribeToResult (http://dev:3000/vendor.dll.js:549:27) at MergeAllSubscriber._next (http://dev:3000/vendor.dll.js:20448:42) at MergeAllSubscriber.Subscriber.next (http://dev:3000/vendor.dll.js:312:18) at MapSubscriber._next (http://dev:3000/vendor.dll.js:20353:26) at MapSubscriber.Subscriber.next (http://dev:3000/vendor.dll.js:312:18) at ArrayObservable._subscribe (http://dev:3000/vendor.dll.js:1235:28) at ArrayObservable.Observable._trySubscribe (http://dev:3000/vendor.dll.js:131:25) at ArrayObservable.Observable.subscribe (http://dev:3000/vendor.dll.js:119:27) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeAllOperator.call (http://dev:3000/vendor.dll.js:20426:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at FirstOperator.call (http://dev:3000/vendor.dll.js:28056:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at CatchOperator.call (http://dev:3000/vendor.dll.js:27504:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at Object.subscribeToResult (http://dev:3000/vendor.dll.js:549:27) at MergeAllSubscriber._next (http://dev:3000/vendor.dll.js:20448:42) at MergeAllSubscriber.Subscriber.next (http://dev:3000/vendor.dll.js:312:18) at ScalarObservable._subscribe (http://dev:3000/vendor.dll.js:25434:24) at ScalarObservable.Observable._trySubscribe (http://dev:3000/vendor.dll.js:131:25) at ScalarObservable.Observable.subscribe (http://dev:3000/vendor.dll.js:119:27) at MergeAllOperator.call (http://dev:3000/vendor.dll.js:20426:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at LastOperator.call (http://dev:3000/vendor.dll.js:28183:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at CatchOperator.call (http://dev:3000/vendor.dll.js:27504:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at http://dev:3000/vendor.dll.js:163:34 at new ZoneAwarePromise (http://dev:3000/polyfills.dll.js:4531:29) at Observable.forEach (http://dev:3000/vendor.dll.js:159:16) at http://dev:3000/vendor.dll.js:41943:18 at new ZoneAwarePromise (http://dev:3000/polyfills.dll.js:4531:29) at Router.runNavigate (http://dev:3000/vendor.dll.js:41874:16) at http://dev:3000/vendor.dll.js:41843:51 at ZoneDelegate.invoke (http://dev:3000/polyfills.dll.js:4120:26) at Object.onInvoke (http://dev:3000/vendor.dll.js:5601:37) at ZoneDelegate.invoke (http://dev:3000/polyfills.dll.js:4119:32) at Zone.run (http://dev:3000/polyfills.dll.js:3880:43) at http://dev:3000/polyfills.dll.js:4515:57 at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4153:31) at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) at HTMLAnchorElement.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) at BreadcrumbComponent.generateBreadcrumbTrail (http://dev:3000/vendor.bundle.js:18890:16) at SafeSubscriber._next (http://dev:3000/vendor.bundle.js:18875:19) at SafeSubscriber.__tryOrUnsub (http://dev:3000/vendor.dll.js:459:16) at SafeSubscriber.next (http://dev:3000/vendor.dll.js:408:22) at Subscriber._next (http://dev:3000/vendor.dll.js:348:26) at Subscriber.next (http://dev:3000/vendor.dll.js:312:18) at Subject.next (http://dev:3000/vendor.dll.js:673:25) at Router.triggerEvent (http://dev:3000/vendor.dll.js:41572:70) at RouterConfigLoader.onLoadStart [as onLoadStartListener] (http://dev:3000/vendor.dll.js:41492:55) at RouterConfigLoader.load (http://dev:3000/vendor.dll.js:38375:18) at MergeMapSubscriber.project (http://dev:3000/vendor.dll.js:39460:107) at MergeMapSubscriber._tryNext (http://dev:3000/vendor.dll.js:26016:27) at MergeMapSubscriber._next (http://dev:3000/vendor.dll.js:26006:18) at MergeMapSubscriber.Subscriber.next (http://dev:3000/vendor.dll.js:312:18) at EverySubscriber.notifyComplete (http://dev:3000/vendor.dll.js:27852:26) at EverySubscriber._complete (http://dev:3000/vendor.dll.js:27869:14) at EverySubscriber.Subscriber.complete (http://dev:3000/vendor.dll.js:337:18) at MergeAllSubscriber._complete (http://dev:3000/vendor.dll.js:20457:30) at MergeAllSubscriber.Subscriber.complete (http://dev:3000/vendor.dll.js:337:18) at MapSubscriber.Subscriber._complete (http://dev:3000/vendor.dll.js:355:26) at MapSubscriber.Subscriber.complete (http://dev:3000/vendor.dll.js:337:18) at ArrayObservable._subscribe (http://dev:3000/vendor.dll.js:1237:24) at ArrayObservable.Observable._trySubscribe (http://dev:3000/vendor.dll.js:131:25) at ArrayObservable.Observable.subscribe (http://dev:3000/vendor.dll.js:119:27) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeAllOperator.call (http://dev:3000/vendor.dll.js:20426:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at EveryOperator.call (http://dev:3000/vendor.dll.js:27832:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at CatchOperator.call (http://dev:3000/vendor.dll.js:27504:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at Object.subscribeToResult (http://dev:3000/vendor.dll.js:549:27) at MergeAllSubscriber._next (http://dev:3000/vendor.dll.js:20448:42) at MergeAllSubscriber.Subscriber.next (http://dev:3000/vendor.dll.js:312:18) at MapSubscriber._next (http://dev:3000/vendor.dll.js:20353:26) at MapSubscriber.Subscriber.next (http://dev:3000/vendor.dll.js:312:18) at ArrayObservable._subscribe (http://dev:3000/vendor.dll.js:1235:28) at ArrayObservable.Observable._trySubscribe (http://dev:3000/vendor.dll.js:131:25) at ArrayObservable.Observable.subscribe (http://dev:3000/vendor.dll.js:119:27) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeAllOperator.call (http://dev:3000/vendor.dll.js:20426:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at FirstOperator.call (http://dev:3000/vendor.dll.js:28056:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at CatchOperator.call (http://dev:3000/vendor.dll.js:27504:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at Object.subscribeToResult (http://dev:3000/vendor.dll.js:549:27) at MergeAllSubscriber._next (http://dev:3000/vendor.dll.js:20448:42) at MergeAllSubscriber.Subscriber.next (http://dev:3000/vendor.dll.js:312:18) at ScalarObservable._subscribe (http://dev:3000/vendor.dll.js:25434:24) at ScalarObservable.Observable._trySubscribe (http://dev:3000/vendor.dll.js:131:25) at ScalarObservable.Observable.subscribe (http://dev:3000/vendor.dll.js:119:27) at MergeAllOperator.call (http://dev:3000/vendor.dll.js:20426:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at LastOperator.call (http://dev:3000/vendor.dll.js:28183:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at CatchOperator.call (http://dev:3000/vendor.dll.js:27504:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MergeMapOperator.call (http://dev:3000/vendor.dll.js:25981:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at MapOperator.call (http://dev:3000/vendor.dll.js:20324:23) at Observable.subscribe (http://dev:3000/vendor.dll.js:116:22) at http://dev:3000/vendor.dll.js:163:34 at new ZoneAwarePromise (http://dev:3000/polyfills.dll.js:4531:29) at Observable.forEach (http://dev:3000/vendor.dll.js:159:16) at http://dev:3000/vendor.dll.js:41943:18 at new ZoneAwarePromise (http://dev:3000/polyfills.dll.js:4531:29) at Router.runNavigate (http://dev:3000/vendor.dll.js:41874:16) at http://dev:3000/vendor.dll.js:41843:51 at ZoneDelegate.invoke (http://dev:3000/polyfills.dll.js:4120:26) at Object.onInvoke (http://dev:3000/vendor.dll.js:5601:37) at ZoneDelegate.invoke (http://dev:3000/polyfills.dll.js:4119:32) at Zone.run (http://dev:3000/polyfills.dll.js:3880:43) at http://dev:3000/polyfills.dll.js:4515:57 at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4153:31) at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) at HTMLAnchorElement.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) at resolvePromise (http://dev:3000/polyfills.dll.js:4467:31) [angular] at resolvePromise (http://dev:3000/polyfills.dll.js:4438:17) [angular] at http://dev:3000/polyfills.dll.js:4515:17 [angular] at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) [angular] at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) [angular] at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) [<root> => angular] at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) [<root>] at HTMLAnchorElement.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) [<root>] at ____________________Elapsed_45_ms__At__Wed_Apr_05_2017_17_56_31_GMT_0700__PDT_ (http://localhost) at getStacktraceWithUncaughtError (http://dev:3000/polyfills.dll.js:3628:12) [angular] at new LongStackTrace (http://dev:3000/polyfills.dll.js:3622:22) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:3693:18) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:4029:29) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Zone.scheduleTask (http://dev:3000/polyfills.dll.js:3964:43) [angular] at Zone.scheduleMicroTask (http://dev:3000/polyfills.dll.js:3984:25) [angular] at scheduleResolveOrReject (http://dev:3000/polyfills.dll.js:4513:14) [angular] at resolvePromise (http://dev:3000/polyfills.dll.js:4462:21) [angular] at http://dev:3000/polyfills.dll.js:4393:17 [angular] at Object.onInvoke (http://dev:3000/vendor.dll.js:5601:37) [angular] at Zone.run (http://dev:3000/polyfills.dll.js:3880:43) [angular => angular] at http://dev:3000/polyfills.dll.js:4515:57 [angular] at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) [angular] at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) [angular] at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) [<root> => angular] at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) [<root>] at HTMLAnchorElement.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) [<root>] at ____________________Elapsed_0_ms__At__Wed_Apr_05_2017_17_56_31_GMT_0700__PDT_ (http://localhost) at getStacktraceWithUncaughtError (http://dev:3000/polyfills.dll.js:3628:12) [angular] at new LongStackTrace (http://dev:3000/polyfills.dll.js:3622:22) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:3693:18) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:4029:29) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Zone.scheduleTask (http://dev:3000/polyfills.dll.js:3964:43) [angular] at Zone.scheduleMicroTask (http://dev:3000/polyfills.dll.js:3984:25) [angular] at scheduleResolveOrReject (http://dev:3000/polyfills.dll.js:4513:14) [angular] at resolvePromise (http://dev:3000/polyfills.dll.js:4462:21) [angular] at http://dev:3000/polyfills.dll.js:4393:17 [angular] at http://dev:3000/polyfills.dll.js:4409:33 [angular] at Object.onInvoke (http://dev:3000/vendor.dll.js:5601:37) [angular] at Zone.run (http://dev:3000/polyfills.dll.js:3880:43) [angular => angular] at http://dev:3000/polyfills.dll.js:4515:57 [angular] at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) [angular] at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) [angular] at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) [<root> => angular] at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) [<root>] at HTMLAnchorElement.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) [<root>] at ____________________Elapsed_1_ms__At__Wed_Apr_05_2017_17_56_31_GMT_0700__PDT_ (http://localhost) at getStacktraceWithUncaughtError (http://dev:3000/polyfills.dll.js:3628:12) [angular] at new LongStackTrace (http://dev:3000/polyfills.dll.js:3622:22) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:3693:18) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:4029:29) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Zone.scheduleTask (http://dev:3000/polyfills.dll.js:3964:43) [angular] at Zone.scheduleMicroTask (http://dev:3000/polyfills.dll.js:3984:25) [angular] at scheduleResolveOrReject (http://dev:3000/polyfills.dll.js:4513:14) [angular] at resolvePromise (http://dev:3000/polyfills.dll.js:4462:21) [angular] at http://dev:3000/polyfills.dll.js:4393:17 [angular] at http://dev:3000/vendor.dll.js:41989:25 [angular] at Object.onInvoke (http://dev:3000/vendor.dll.js:5601:37) [angular] at Zone.run (http://dev:3000/polyfills.dll.js:3880:43) [angular => angular] at http://dev:3000/polyfills.dll.js:4515:57 [angular] at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) [angular] at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) [angular] at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) [<root> => angular] at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) [<root>] at HTMLAnchorElement.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) [<root>] at ____________________Elapsed_0_ms__At__Wed_Apr_05_2017_17_56_31_GMT_0700__PDT_ (http://localhost) at getStacktraceWithUncaughtError (http://dev:3000/polyfills.dll.js:3628:12) [angular] at new LongStackTrace (http://dev:3000/polyfills.dll.js:3622:22) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:3693:18) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:4029:29) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Zone.scheduleTask (http://dev:3000/polyfills.dll.js:3964:43) [angular] at Zone.scheduleMicroTask (http://dev:3000/polyfills.dll.js:3984:25) [angular] at scheduleResolveOrReject (http://dev:3000/polyfills.dll.js:4513:14) [angular] at ZoneAwarePromise.then (http://dev:3000/polyfills.dll.js:4602:17) [angular] at http://dev:3000/vendor.dll.js:41965:18 [angular] at new ZoneAwarePromise (http://dev:3000/polyfills.dll.js:4531:29) [angular] at Router.runNavigate (http://dev:3000/vendor.dll.js:41874:16) [angular] at http://dev:3000/vendor.dll.js:41843:51 [angular] at Object.onInvoke (http://dev:3000/vendor.dll.js:5601:37) [angular] at Zone.run (http://dev:3000/polyfills.dll.js:3880:43) [angular => angular] at http://dev:3000/polyfills.dll.js:4515:57 [angular] at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) [angular] at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) [angular] at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) [<root> => angular] at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) [<root>] at HTMLAnchorElement.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) [<root>] at ____________________Elapsed_1332064_ms__At__Wed_Apr_05_2017_17_34_19_GMT_0700__PDT_ (http://localhost) at getStacktraceWithUncaughtError (http://dev:3000/polyfills.dll.js:3628:12) [angular] at new LongStackTrace (http://dev:3000/polyfills.dll.js:3622:22) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:3693:18) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:4029:29) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Zone.scheduleTask (http://dev:3000/polyfills.dll.js:3964:43) [angular] at Zone.scheduleMicroTask (http://dev:3000/polyfills.dll.js:3984:25) [angular] at scheduleResolveOrReject (http://dev:3000/polyfills.dll.js:4513:14) [angular] at ZoneAwarePromise.then (http://dev:3000/polyfills.dll.js:4602:17) [angular] at Router.executeScheduledNavigation (http://dev:3000/vendor.dll.js:41843:18) [angular] at MergeMapSubscriber.project (http://dev:3000/vendor.dll.js:41786:23) [angular] at MergeMapSubscriber._tryNext (http://dev:3000/vendor.dll.js:26016:27) [angular] at MergeMapSubscriber._next (http://dev:3000/vendor.dll.js:26006:18) [angular] at MergeMapSubscriber.Subscriber.next (http://dev:3000/vendor.dll.js:312:18) [angular] at BehaviorSubject.Subject.next (http://dev:3000/vendor.dll.js:673:25) [angular] at BehaviorSubject.next (http://dev:3000/vendor.dll.js:25266:31) [angular] at Router.scheduleNavigation (http://dev:3000/vendor.dll.js:41826:26) [angular] at Router.navigateByUrl (http://dev:3000/vendor.dll.js:41704:21) [angular] at RouterLinkWithHref.onClick (http://dev:3000/vendor.dll.js:42857:21) [angular] at Object.eval [as handleEvent] (ng:///SharedModule/GlobalNavigationComponent.ngfactory.js:225:41) [angular] at handleEvent (http://dev:3000/vendor.dll.js:13281:138) [angular] at callWithDebugContext (http://dev:3000/vendor.dll.js:14489:42) [angular] at Object.debugHandleEvent [as handleEvent] (http://dev:3000/vendor.dll.js:14077:12) [angular] at dispatchEvent (http://dev:3000/vendor.dll.js:10256:21) [angular] at http://dev:3000/vendor.dll.js:10846:38 [angular] at HTMLAnchorElement.<anonymous> (http://dev:3000/vendor.dll.js:18357:53) [angular] at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) [angular] at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) [angular] at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) [<root> => angular] at HTMLAnchorElement.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4215:38) [<root>] at ____________________Elapsed_9392_ms__At__Wed_Apr_05_2017_17_34_10_GMT_0700__PDT_ (http://localhost) at getStacktraceWithUncaughtError (http://dev:3000/polyfills.dll.js:3628:12) [angular] at new LongStackTrace (http://dev:3000/polyfills.dll.js:3622:22) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:3693:18) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:4029:29) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Zone.scheduleTask (http://dev:3000/polyfills.dll.js:3964:43) [angular] at Zone.scheduleEventTask (http://dev:3000/polyfills.dll.js:3990:25) [angular] at zoneAwareAddListener (http://dev:3000/polyfills.dll.js:5125:14) [angular] at HTMLAnchorElement.addEventListener (eval at createNamedFn (http://dev:3000/polyfills.dll.js:5231:17), <anonymous>:3:43) [angular] at DomEventsPlugin.addEventListener (http://dev:3000/vendor.dll.js:18757:17) [angular] at EventManager.addEventListener (http://dev:3000/vendor.dll.js:18103:23) [angular] at EmulatedEncapsulationDomRenderer2.DefaultDomRenderer2.listen (http://dev:3000/vendor.dll.js:18616:36) [angular] at DebugRenderer2.listen (http://dev:3000/vendor.dll.js:14753:30) [angular] at listenToElementOutputs (http://dev:3000/vendor.dll.js:10835:66) [angular] at createViewNodes (http://dev:3000/vendor.dll.js:13425:17) [angular] at createEmbeddedView (http://dev:3000/vendor.dll.js:13346:5) [angular] at callWithDebugContext (http://dev:3000/vendor.dll.js:14489:42) [angular] at Object.debugCreateEmbeddedView [as createEmbeddedView] (http://dev:3000/vendor.dll.js:14022:12) [angular] at TemplateRef_.createEmbeddedView (http://dev:3000/vendor.dll.js:11684:38) [angular] at ViewContainerRef_.createEmbeddedView (http://dev:3000/vendor.dll.js:11476:52) [angular] at NgIf._updateView (http://dev:3000/vendor.dll.js:22804:45) [angular] at NgIf.set [as ngIf] (http://dev:3000/vendor.dll.js:22763:18) [angular] at updateProp (http://dev:3000/vendor.dll.js:12448:37) [angular] at checkAndUpdateDirectiveInline (http://dev:3000/vendor.dll.js:12145:19) [angular] at checkAndUpdateNodeInline (http://dev:3000/vendor.dll.js:13566:17) [angular] at checkAndUpdateNode (http://dev:3000/vendor.dll.js:13534:16) [angular] at debugCheckAndUpdateNode (http://dev:3000/vendor.dll.js:14163:59) [angular] at debugCheckDirectivesFn (http://dev:3000/vendor.dll.js:14104:13) [angular] at Object.View_GlobalNavigationComponent_1.co [as updateDirectives] (ng:///SharedModule/GlobalNavigationComponent.ngfactory.js:1908:5) [angular] at Object.debugUpdateDirectives [as updateDirectives] (http://dev:3000/vendor.dll.js:14089:21) [angular] at checkAndUpdateView (http://dev:3000/vendor.dll.js:13501:14) [angular] at callViewAction (http://dev:3000/vendor.dll.js:13816:17) [angular] at execEmbeddedViewsAction (http://dev:3000/vendor.dll.js:13788:17) [angular] at checkAndUpdateView (http://dev:3000/vendor.dll.js:13502:5) [angular] at callViewAction (http://dev:3000/vendor.dll.js:13816:17) [angular] at execComponentViewsAction (http://dev:3000/vendor.dll.js:13762:13) [angular] at checkAndUpdateView (http://dev:3000/vendor.dll.js:13507:5) [angular] at callViewAction (http://dev:3000/vendor.dll.js:13816:17) [angular] at execComponentViewsAction (http://dev:3000/vendor.dll.js:13762:13) [angular] at checkAndUpdateView (http://dev:3000/vendor.dll.js:13507:5) [angular] at callWithDebugContext (http://dev:3000/vendor.dll.js:14489:42) [angular] at Object.debugCheckAndUpdateView [as checkAndUpdateView] (http://dev:3000/vendor.dll.js:14029:12) [angular] at ViewRef_.detectChanges (http://dev:3000/vendor.dll.js:11598:63) [angular] at http://dev:3000/vendor.dll.js:6528:63 [angular] at Array.forEach (native) [angular] at ApplicationRef_.tick (http://dev:3000/vendor.dll.js:6528:25) [angular] at ApplicationRef_._loadComponent (http://dev:3000/vendor.dll.js:6504:14) [angular] at ApplicationRef_.bootstrap (http://dev:3000/vendor.dll.js:6492:14) [angular] at http://dev:3000/vendor.dll.js:6272:79 [angular] at Array.forEach (native) [angular] at PlatformRef_._moduleDoBootstrap (http://dev:3000/vendor.dll.js:6272:42) [angular] at http://dev:3000/vendor.dll.js:6234:27 [angular] at Object.onInvoke (http://dev:3000/vendor.dll.js:5601:37) [angular] at Zone.run (http://dev:3000/polyfills.dll.js:3880:43) [angular => angular] at http://dev:3000/polyfills.dll.js:4515:57 [angular] at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) [angular] at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) [angular] at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) [<root> => angular] at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) [<root>] at HTMLDocument.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) [<root>] at ____________________Elapsed_62_ms__At__Wed_Apr_05_2017_17_34_10_GMT_0700__PDT_ (http://localhost) at getStacktraceWithUncaughtError (http://dev:3000/polyfills.dll.js:3628:12) [angular] at new LongStackTrace (http://dev:3000/polyfills.dll.js:3622:22) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:3693:18) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:4029:29) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Zone.scheduleTask (http://dev:3000/polyfills.dll.js:3964:43) [angular] at Zone.scheduleMicroTask (http://dev:3000/polyfills.dll.js:3984:25) [angular] at scheduleResolveOrReject (http://dev:3000/polyfills.dll.js:4513:14) [angular] at resolvePromise (http://dev:3000/polyfills.dll.js:4462:21) [angular] at http://dev:3000/polyfills.dll.js:4515:17 [angular] at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) [angular] at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) [angular] at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) [<root> => angular] at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) [<root>] at HTMLDocument.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) [<root>] at ____________________Elapsed_1_ms__At__Wed_Apr_05_2017_17_34_10_GMT_0700__PDT_ (http://localhost) at getStacktraceWithUncaughtError (http://dev:3000/polyfills.dll.js:3628:12) [angular] at new LongStackTrace (http://dev:3000/polyfills.dll.js:3622:22) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:3693:18) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:4029:29) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Zone.scheduleTask (http://dev:3000/polyfills.dll.js:3964:43) [angular] at Zone.scheduleMicroTask (http://dev:3000/polyfills.dll.js:3984:25) [angular] at scheduleResolveOrReject (http://dev:3000/polyfills.dll.js:4513:14) [angular] at resolvePromise (http://dev:3000/polyfills.dll.js:4462:21) [angular] at http://dev:3000/polyfills.dll.js:4393:17 [angular] at http://dev:3000/polyfills.dll.js:4586:25 [angular] at Object.onInvoke (http://dev:3000/vendor.dll.js:5601:37) [angular] at Zone.run (http://dev:3000/polyfills.dll.js:3880:43) [angular => angular] at http://dev:3000/polyfills.dll.js:4515:57 [angular] at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) [angular] at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) [angular] at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) [<root> => angular] at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) [<root>] at HTMLDocument.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) [<root>] at ____________________Elapsed_0_ms__At__Wed_Apr_05_2017_17_34_10_GMT_0700__PDT_ (http://localhost) at getStacktraceWithUncaughtError (http://dev:3000/polyfills.dll.js:3628:12) [angular] at new LongStackTrace (http://dev:3000/polyfills.dll.js:3622:22) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:3693:18) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:4029:29) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Zone.scheduleTask (http://dev:3000/polyfills.dll.js:3964:43) [angular] at Zone.scheduleMicroTask (http://dev:3000/polyfills.dll.js:3984:25) [angular] at scheduleResolveOrReject (http://dev:3000/polyfills.dll.js:4513:14) [angular] at resolvePromise (http://dev:3000/polyfills.dll.js:4462:21) [angular] at resolvePromise (http://dev:3000/polyfills.dll.js:4438:17) [angular] at http://dev:3000/polyfills.dll.js:4515:17 [angular] at Object.onInvokeTask (http://dev:3000/vendor.dll.js:5592:37) [angular] at ZoneDelegate.invokeTask (http://dev:3000/polyfills.dll.js:4152:36) [angular] at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) [<root> => angular] at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) [<root>] at HTMLDocument.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) [<root>] at ____________________Elapsed_5_ms__At__Wed_Apr_05_2017_17_34_10_GMT_0700__PDT_ (http://localhost) at getStacktraceWithUncaughtError (http://dev:3000/polyfills.dll.js:3628:12) [angular] at new LongStackTrace (http://dev:3000/polyfills.dll.js:3622:22) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:3693:18) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Object.onScheduleTask (http://dev:3000/polyfills.dll.js:4029:29) [angular] at ZoneDelegate.scheduleTask (http://dev:3000/polyfills.dll.js:4133:51) [angular] at Zone.scheduleTask (http://dev:3000/polyfills.dll.js:3964:43) [angular] at Zone.scheduleMicroTask (http://dev:3000/polyfills.dll.js:3984:25) [angular] at scheduleResolveOrReject (http://dev:3000/polyfills.dll.js:4513:14) [angular] at ZoneAwarePromise.then (http://dev:3000/polyfills.dll.js:4602:17) [angular] at RouterInitializer.appInitializer (http://dev:3000/vendor.dll.js:43830:18) [angular] at new ApplicationInitStatus (http://dev:3000/vendor.dll.js:4384:45) [angular] at AppModuleInjector.createInternal (ng:///AppModule/module.ngfactory.js:325:35) [angular] at AppModuleInjector.NgModuleInjector.create (http://dev:3000/vendor.dll.js:5013:76) [angular] at NgModuleFactory.create (http://dev:3000/vendor.dll.js:4986:18) [angular] at http://dev:3000/vendor.dll.js:6224:61 [angular] at Object.onInvoke (http://dev:3000/vendor.dll.js:5601:37) [angular] at Zone.run (http://dev:3000/polyfills.dll.js:3880:43) [<root> => angular] at NgZone.run (http://dev:3000/vendor.dll.js:5470:62) [<root>] at PlatformRef_._bootstrapModuleFactoryWithZone (http://dev:3000/vendor.dll.js:6222:23) [<root>] at http://dev:3000/vendor.dll.js:6263:59 [<root>] at Zone.run (http://dev:3000/polyfills.dll.js:3880:43) [<root> => <root>] at http://dev:3000/polyfills.dll.js:4515:57 [<root>] at Zone.runTask (http://dev:3000/polyfills.dll.js:3920:47) [<root> => <root>] at drainMicroTaskQueue (http://dev:3000/polyfills.dll.js:4348:35) [<root>] at HTMLDocument.ZoneTask.invoke (http://dev:3000/polyfills.dll.js:4219:25) [<root>] defaultErrorLogger @ vendor.dll.js:2560

evanjmg commented 7 years ago

Here's a quick fix for this. I had the same issue.

gmostert commented 7 years ago

Updated in v0.5.14, thnx @evanjmg