【发布时间】:2020-03-04 19:15:48
【问题描述】:
我在 ionic 项目中生成带有路由的模块时遇到问题。
我从ionic start routing blank 创建了新的离子项目。我使用以下命令生成带有路由的模块。
ionic g m heroes --route heroes --module app-routing.module
或
ng g m heroes --route heroes --module app-routing.module
我收到了这个错误。
File heroes/heroes.module.ts does not exist.
[ERROR] Could not generate module.
如果我在纯 Angular 项目中生成这样的模块,它就可以完美地工作。 我使用了 Ionic 5.4.4 和 Angular 8。
【问题讨论】:
标签: angular ionic-framework angular-ui-router