ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Cannot generate angular module with routing in ionic

Open ionitron-bot[bot] opened this issue 6 years ago • 4 comments

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.

ionitron-bot[bot] avatar Nov 08 '19 08:11 ionitron-bot[bot]

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.

iyz91 avatar Jun 14 '21 17:06 iyz91

Hi, this is still an issue with @ionic/angular ^6.0.0 and @angular/ci 13.1.3.

beyerleinf avatar Jan 23 '22 19:01 beyerleinf

The problem is still here with

    "@angular/common": "^14.0.0",
    "@ionic/angular": "^6.1.9",

GiuServ avatar Jun 29 '22 15:06 GiuServ

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",

diegolaciar avatar Oct 20 '22 01:10 diegolaciar