Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ngrx effects property payload does not exist on type never

Upgrading ngrx I keep getting this message in my Effects files

enter image description here

like image 287
Post Impatica Avatar asked Dec 13 '22 11:12

Post Impatica


1 Answers

I keep forgetting this because it's so obscure.

Gotcha 1

You have to scroll down in your code of your effects file and change the input of your constructor from using:

private actions$: Actions

to

private actions$: Actions <auth.AuthActionsUnion>

Gotcha 2

From within your action file, scroll to the bottom and make sure you are adding all your types to the union.

ex: enter image description here

like image 159
Post Impatica Avatar answered Feb 01 '23 20:02

Post Impatica