Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Error when using router store with devtools [LogMonitorComponent] #24

Closed
alyahmedaly opened this issue Sep 17, 2016 · 4 comments
Closed

Comments

@alyahmedaly
Copy link

I got this error when using RouterStoreModule.connectRouter() with dev tools and click on Revert Button
core.umd.js:3462 EXCEPTION: Error in ./LogMonitorComponent class LogMonitorComponent - inline template:6:26 caused by: Cannot read property 'path' of nullErrorHandler.handleError @ core.umd.js:3462next @ core.umd.js:6924schedulerFn @ core.umd.js:6172SafeSubscriber.__tryOrUnsub @ Subscriber.js:223SafeSubscriber.next @ Subscriber.js:172Subscriber._next @ Subscriber.js:125Subscriber.next @ Subscriber.js:89Subject.next @ Subject.js:55EventEmitter.emit @ core.umd.js:6164onError @ core.umd.js:6388onHandleError @ core.umd.js:6263ZoneDelegate.handleError @ zone.js:196Zone.runGuarded @ zone.js:102NgZoneImpl.runInnerGuarded @ core.umd.js:6271NgZone.runGuarded @ core.umd.js:6504outsideHandler @ platform-browser.umd.js:1990ZoneDelegate.invokeTask @ zone.js:225Zone.runTask @ zone.js:125ZoneTask.invoke @ zone.js:293 core.umd.js:3464 ORIGINAL EXCEPTION: Cannot read property 'path' of nullErrorHandler.handleError @ core.umd.js:3464next @ core.umd.js:6924schedulerFn @ core.umd.js:6172SafeSubscriber.__tryOrUnsub @ Subscriber.js:223SafeSubscriber.next @ Subscriber.js:172Subscriber._next @ Subscriber.js:125Subscriber.next @ Subscriber.js:89Subject.next @ Subject.js:55EventEmitter.emit @ core.umd.js:6164onError @ core.umd.js:6388onHandleError @ core.umd.js:6263ZoneDelegate.handleError @ zone.js:196Zone.runGuarded @ zone.js:102NgZoneImpl.runInnerGuarded @ core.umd.js:6271NgZone.runGuarded @ core.umd.js:6504outsideHandler @ platform-browser.umd.js:1990ZoneDelegate.invokeTask @ zone.js:225Zone.runTask @ zone.js:125ZoneTask.invoke @ zone.js:293 core.umd.js:3467 ORIGINAL STACKTRACE:ErrorHandler.handleError @ core.umd.js:3467next @ core.umd.js:6924schedulerFn @ core.umd.js:6172SafeSubscriber.__tryOrUnsub @ Subscriber.js:223SafeSubscriber.next @ Subscriber.js:172Subscriber._next @ Subscriber.js:125Subscriber.next @ Subscriber.js:89Subject.next @ Subject.js:55EventEmitter.emit @ core.umd.js:6164onError @ core.umd.js:6388onHandleError @ core.umd.js:6263ZoneDelegate.handleError @ zone.js:196Zone.runGuarded @ zone.js:102NgZoneImpl.runInnerGuarded @ core.umd.js:6271NgZone.runGuarded @ core.umd.js:6504outsideHandler @ platform-browser.umd.js:1990ZoneDelegate.invokeTask @ zone.js:225Zone.runTask @ zone.js:125ZoneTask.invoke @ zone.js:293 core.umd.js:3468 TypeError: Cannot read property 'path' of null at router-store.umd.js:105 at FilterSubscriber._next (filter.js:81) at FilterSubscriber.Subscriber.next (Subscriber.js:89) at WithLatestFromSubscriber._next (withLatestFrom.js:113) at WithLatestFromSubscriber.Subscriber.next (Subscriber.js:89) at DistinctUntilChangedSubscriber._next (distinctUntilChanged.js:72) at DistinctUntilChangedSubscriber.Subscriber.next (Subscriber.js:89) at MapSubscriber._next (map.js:83) at MapSubscriber.Subscriber.next (Subscriber.js:89) at MapSubscriber._next (map.js:83) at MapSubscriber.Subscriber.next (Subscriber.js:89) at RefCountSubscriber.Subscriber._next (Subscriber.js:125) at RefCountSubscriber.Subscriber.next (Subscriber.js:89) at ReplaySubject.Subject.next (Subject.js:55) at ReplaySubject.next (ReplaySubject.js:28) at ConnectableSubscriber.Subscriber._next (Subscriber.js:125) at ConnectableSubscriber.Subscriber.next (Subscriber.js:89) at ScanSubscriber._tryNext (scan.js:104) at ScanSubscriber._next (scan.js:91) at ScanSubscriber.Subscriber.next (Subscriber.js:89) at WithLatestFromSubscriber._next (withLatestFrom.js:113) at WithLatestFromSubscriber.Subscriber.next (Subscriber.js:89) at Notification.observe (Notification.js:32) at QueueAction.ObserveOnSubscriber.dispatch (observeOn.js:50) at QueueAction.AsyncAction._execute (AsyncAction.js:111) at QueueAction.execute (QueueAction.js:33) at QueueScheduler.AsyncScheduler.flush (AsyncScheduler.js:36) at QueueAction.schedule (QueueAction.js:27) at QueueScheduler.Scheduler.schedule (Scheduler.js:43) at ObserveOnSubscriber.scheduleMessage (observeOn.js:53) at ObserveOnSubscriber._next (observeOn.js:56) at ObserveOnSubscriber.Subscriber.next (Subscriber.js:89) at MergeAllSubscriber.OuterSubscriber.notifyNext (OuterSubscriber.js:19) at InnerSubscriber._next (InnerSubscriber.js:23) at InnerSubscriber.Subscriber.next (Subscriber.js:89) at DevtoolsDispatcher.Subject.next (Subject.js:55) at DevtoolsDispatcher.BehaviorSubject.next (BehaviorSubject.js:44) at DevtoolsDispatcher.Dispatcher.dispatch (store.umd.js:18) at StoreDevtools.dispatch (store-devtools.umd.js:439) at StoreDevtools.rollback (store-devtools.umd.js:453) at LogMonitorComponent.handleRollback (store-log-monitor.umd.js:531) at DebugAppView._View_LogMonitorComponent0._handle_action_6_0 (LogMonitorComponent.ngfactory.js:263) at core.umd.js:9698 at SafeSubscriber.schedulerFn [as _next] (core.umd.js:6185) at SafeSubscriber.__tryOrUnsub (Subscriber.js:223) at SafeSubscriber.next (Subscriber.js:172) at Subscriber._next (Subscriber.js:125) at Subscriber.next (Subscriber.js:89) at EventEmitter.Subject.next (Subject.js:55) at LogMonitorButtonComponent.handleAction (store-log-monitor.umd.js:562) at DebugAppView._View_LogMonitorComponent0._handle_click_6_1 (LogMonitorComponent.ngfactory.js:270) at core.umd.js:9698 at platform-browser.umd.js:1877 at platform-browser.umd.js:1990 at ZoneDelegate.invoke (zone.js:192) at Object.onInvoke (core.umd.js:6242) at ZoneDelegate.invoke (zone.js:191) at Zone.runGuarded (zone.js:99) at NgZoneImpl.runInnerGuarded (core.umd.js:6271) at NgZone.runGuarded (core.umd.js:6504) at HTMLElement.outsideHandler (platform-browser.umd.js:1990) at ZoneDelegate.invokeTask (zone.js:225) at Zone.runTask (zone.js:125) at HTMLElement.ZoneTask.invoke (zone.js:293)

@brandonroberts
Copy link
Member

See #14. You can provide a default value for the router state. I'll add the default to the readme.

@alyahmedaly
Copy link
Author

Could you please provide an example here until you add it to read me

brandonroberts added a commit that referenced this issue Sep 17, 2016
Sets initial value for router state

Closes #24
brandonroberts added a commit that referenced this issue Sep 17, 2016
Sets initial value for router state

Closes #24
@brandonroberts
Copy link
Member

I submitted a fix for the issue as it has come up before. It will go out with the next release

MikeRyanDev pushed a commit that referenced this issue Sep 19, 2016
Sets initial value for router state

Closes #24
@brandonroberts
Copy link
Member

Released as 1.2.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants