NGRX: TypeError: Actions must have a type property
If this helps someone else starting...Turns out I was not returning the Action that ngrx is expecting in the map operator.
because effect must return an action at the end. so you have two choices:
- return a {type: string} object
return a new Action()
import * as MyActions from "./myactions.actions"; @Injectable() export class MyEffects { @Effect() testEffect = this.actions$ .ofType(MyActions.TEST_ACTION) .map((action: MyActions.TryTest) => { return {type:'your_action'} }); constructor(private actions$: Actions) {} }