Cannot read properties of undefined (reading ‘pipe’)
this is the code I have written
<code>register$ = createEffect(():any=>{
this.actions$.pipe(
ofType(registerUser),
mergeMap(action=>
this.userService.userRegister(action.firstName,action.lastName,action.email,action.phone,action.password).pipe(
map(user=> registerUserSuccess({user:user}))
)
)
)
})
</code>
<code>register$ = createEffect(():any=>{
this.actions$.pipe(
ofType(registerUser),
mergeMap(action=>
this.userService.userRegister(action.firstName,action.lastName,action.email,action.phone,action.password).pipe(
map(user=> registerUserSuccess({user:user}))
)
)
)
})
</code>
register$ = createEffect(():any=>{
this.actions$.pipe(
ofType(registerUser),
mergeMap(action=>
this.userService.userRegister(action.firstName,action.lastName,action.email,action.phone,action.password).pipe(
map(user=> registerUserSuccess({user:user}))
)
)
)
})
How to solve this problem
1