The error indicates a missing comma after the action
parameter in the .map
.
Another error pops up when hovering over DataActions.AddDataAction
, displaying
Tuple type '[Action, AppStore]' with length '2' cannot be assigned to tuple with length '5'
@Effect() addData$ = this.actions$
.ofType(DataActions.ADD_DATA)
.withLatestFrom(this.store$)
.map(([action: DataActions.AddDataAction, store: AppState]) => [action.payload, reducer.dataResults(store)])
.etc...
Listed below are the relevant packages along with their versions from my package.json
file:
"@ngrx/effects": "^4.1.1",
"@ngrx/router-store": "^4.1.1",
"@ngrx/store": "^4.1.1",
"@ngrx/store-devtools": "^4.1.1",
"typescript": "~2.4.0",