angular - 如何解决ionic 4中的 "An unhandled exception occurred: Schematic "页面“not found in collection "@ngxs/schematics"”

标签 angular ionic4

发生未处理的异常:在集合“@ngxs/schematics”中找不到原理图“页面”。

最佳答案

当您切换到 @ngrx/schematics 作为默认集合(默认扩展 @schematics/angular)时,您只能使用与 angular 和 ngrx 相关的原理图。您必须默认切换到 @ionic/angular-toolkit 集合才能使用 ionic 原理图。

要使用 @ionic/angular-toolkit 作为默认集合,请使用 ng config cli.defaultCollection @ionic/angular-toolkit

您必须在 @ngrx/schematics@ionic/angular-toolkit 之间切换,因为 CLI 不支持多个默认集合。有PR跟踪那个问题。检查一下。

关于angular - 如何解决ionic 4中的 "An unhandled exception occurred: Schematic "页面“not found in collection "@ngxs/schematics"”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63032369/

相关文章:

angular - 你能把你的动画移动到 Angular2 中的外部文件吗?

angular - 如何将数字分配给类型 'BehaviorSubject<number>'

javascript - 为项目列表正确声明 Observable

javascript - angular2 中不再存在的 routerState.parent 的替代方案

javascript - 如何在 ionic 4 中移动搜索栏右侧搜索栏的搜索图标

firebase - 如何修复谷歌播放服务版本不兼容的错误

sqlite - 如何在 Ionic 4/Capacitor/Electron 应用程序上使用 SQLite?

angular - 区分 ionic <ion-toggle> 中的用户事件与模型更改

c# - 当服务器返回 401 响应时,请求的资源上不存在 'Access-Control-Allow-Origin' header

angular - 带有搜索过滤器的垫选择列表在搜索后不保留选择