angular - @ngrx/schematics 在生成动作和减速器时失败
问题描述
我刚刚安装了@ngrx/schematics,使我能够在我正在使用@ngrx/store 的现有应用程序中生成reducers
和actions
使用角度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",
关于如何解决这个问题的任何想法?
解决方案
I found the answer by myself. If anyone has this issue you can solve by downgrade your '@ngrx/shcematics' to '6.1.2'
推荐阅读
- java - 如果在删除之前使用例如 Spring 实体存在,首先检查数据库是否有意义
- php - 在现有数据库中注册 Laravel
- php - 错误使用 unlink 或 force_download 时 Codeigniter 中的数组到字符串转换
- javascript - 查找对象数组的索引
- r - 有没有办法用隐含值拆分 R 中的列并估算隐含值
- javascript - 如何在另一个函数中返回一个函数
- asp.net-core - 在 .Net Core razor 页面中传递路由参数
- c - 在 prolog 中解决一个简单的难题
- angular - Ag-grid:几列响应性问题
- python - Python ThreadPoolExecutor 和关闭的连接