-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Setup same as #29 ... I followed the docs more closely now. I get:
unhandled Promise rejection: Cannot read property 'asObservable' of undefined ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Cannot read property 'asObservable' of undefined
at new StoreDevtools (store-devtools.es5.js:544)
The import section from the app.module.ts looks like this:
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
ReactiveFormsModule,
HttpModule,
FlexLayoutModule,
AppMaterialModule,
AppRoutingModule,
MHCoreModule,
StoreModule.forRoot(reducers),
StoreRouterConnectingModule,
!environment.prod ? StoreDevtoolsModule.instrument() : [],
EffectsModule.forRoot(),
EffectsModule.run(PersonEffects),
EffectsModule.run(AuthEffects),
CommonModule,
SearchModule,
InteractionModule
],
The reducer import like so (partial):
import {
ActionReducerMap,
createSelector } from '@ngrx/store';
import { routerReducer, RouterReducerState } from '@ngrx/router-store';
import * as interaction from 'mh-core';
import * as person from 'mh-core';
import * as settings from 'mh-core';
import * as auth from 'mh-core';
export interface AppState {
interaction: interaction.InteractionState;
person: person.PersonState;
settings: settings.SettingsState;
auth: auth.AuthState;
router: RouterReducerState;
}
export const reducers: ActionReducerMap<AppState> = {
interaction: interaction.interactionReducer,
person: person.personReducer,
settings: settings.settingsReducer,
auth: auth.authReducer,
router: routerReducer
};
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels