首页 > 解决方案 > @ngrx/schematics 在生成动作和减速器时失败

问题描述

我刚刚安装了@ngrx/schematics,使我能够在我正在使用@ngrx/store 的现有应用程序中生成reducersactions使用角度CLI 。我使用该命令yar add @ngrx/schematics,然后我配置为使用而不是使用角度示意图ng config cli.defaultCollection @ngrx/schematics将配置添加到我的角度 JSON 文件中。一切似乎都很好。组件和服务等常见类已成功创建,但是当我尝试创建操作或减速器时出现错误。

在此处输入图像描述

我正在使用 angular 6 和 ngrx/schematics 8.3

"@ngrx/schematics": "^8.3.0",
"@ngrx/store": "6.0.1",

在此处输入图像描述

关于如何解决这个问题的任何想法?

标签: angularangular-clingrxangular-schematics

解决方案


I found the answer by myself. If anyone has this issue you can solve by downgrade your '@ngrx/shcematics' to '6.1.2'


推荐阅读