angular - ngrx 效果属性负载不存在于类型从不存在

标签 angular ngrx ngrx-store ngrx-effects

升级 ngrx 我一直在我的效果文件中收到这条消息

enter image description here

最佳答案

我一直忘记这一点,因为它太模糊了。

陷阱 1

您必须向下滚动效果文件的代码,并使用以下方法更改构造函数的输入:

private actions$: Actions


private actions$: Actions <auth.AuthActionsUnion>

陷阱 2

从您的操作文件中,滚动到底部并确保将所有类型添加到联合中。

前任:
enter image description here

关于angular - ngrx 效果属性负载不存在于类型从不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56298894/

相关文章:

Angular 6 @ngrx/store api 调用

angular 4变量没有第一次更新

angular - 参数类型 'action' 和 'action' 在 Angular ngrx 存储项目中不兼容

Angular with ngrx store,同步后端数据(设计选择)

javascript - 扫雷 - Angular

angular - RXJS:返回外部可观察值的操纵值

angular - 升级 ngrx 2 -> 4。在解构数组中输入时遇到问题

angular2 rc.5 自定义输入,没有未指定名称的表单控件的值访问器

html - 检测 Angular 组件外部的点击

Angular ngrx@effect 基本问题 : Type 'Observable<void>' is not assignable to type