在离子项目中生成带有路由的模块时遇到问题。
我从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。