ionic-team / ionic-team/ionic-cli

Cannot generate angular module with routing in ionic

Aberta
#4,207 4 comentários 6 reações 0 responsáveis Ver no GitHub
triage
Linguagem predominante
TypeScript
Estrelas
2k
Forks
682
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

_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.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Reproduce the issue in an Ionic 5.4.4 project created with `ionic start routing blank`, then run the two reported module-generation commands using `app-routing.module`. Trace why generation expects `heroes/heroes.module.ts`; done means the command completes and creates the routed module without the reported error.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
angular, typescript
Domínio
cli
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.