In my app.module.ts
file I set up a store with:
imports: [
StoreModule.forRoot(
{ soundtrackState: soundtrackReducer }
),
EffectsModule.forRoot(
[
// SoundtrackEffects TODO add some effects
]
),
StoreDevtoolsModule.instrument({ maxAge: 15, logOnly: environment.production }),
CoreModule,
Now, if I move this code out and into the core.module.ts
file then I get the nullinjectorerror no provider for store
error.