ionic-cli
ionic-cli copied to clipboard
Cannot generate angular module with routing in ionic
Original issue by @kyawswa on 2019-11-08T08:06:22Z
I have a problem to generate modules with routing in ionic project.
I created new ionic project from ionic start routing blank. And I generate module with routing as the following commands.
ionic g m heroes --route heroes --module app-routing.module
or
ng g m heroes --route heroes --module app-routing.module
I got this error.
File heroes/heroes.module.ts does not exist.
[ERROR] Could not generate module.
If I generate modules like this in pure Angular project, it perfectly work. I used Ionic 5.4.4 and Angular 8.
This issue still exists with the following:
@ionic/angular 5.5.2 @angular/cli 12.0.4 (and related)
It does however work perfectly fine with "ionic generate page ..." which is practically an alias for the command in this issue, with the only difference being the addition of "page" to the file/component/module names. The underlying angular cli should always still work.
Hi, this is still an issue with @ionic/angular ^6.0.0 and @angular/ci 13.1.3.
The problem is still here with
"@angular/common": "^14.0.0",
"@ionic/angular": "^6.1.9",
Hi,
Does anyone knows why ionic removed all the ng cli features ?
As generate modules with lazy load, guards, interceptor, pipe, resolvers, etc... ??
using :
"@angular/common": "^14.0.0",
"@ionic/angular": "^6.1.9",