ionic-team / ionic-team/ionic-cli

Cannot generate angular module with routing in ionic

Offen
#4,207 4 Kommentare 6 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
triage
Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
682
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

_Original issue by @kyawswa on [2019-11-08T08:06:22Z](https://github.com/ionic-team/ionic/issues/19869)_

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.