ionic-team / ionic-team/angular-toolkit
Generating component does not add declaration to module
- Linguagem predominante
- TypeScript
- Estrelas
- 73
- Forks
- 34
- Merge médio
- 6min
- PRs com merge (30d)
- 5
Descrição
This will successfully create a module
> ionic generate module tstmdule
When creating a component inside a module,
> ionic generate component tstmdule/tstcmpnt
it does create the component files but it does not update the tstmdule (app/tstmdule/tstmdule.module.ts) module to have the TstcmpntComponent declaration
When I commented out this part in `angular.json` file and generate a component it updates the module successfully
> "cli": {
> "defaultCollection":"@ionic/angular-toolkit"
> }
Guia de contribuição
Direção de pesquisa
Reproduce the issue with the two ionic generate commands and inspect the schematic selected by the angular.json defaultCollection setting. Compare the generated component with app/tstmdule/tstmdule.module.ts; done means the module includes TstcmpntComponent in its declarations when generated through the configured collection.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- angular, typescript
- Domínio
- cli, tooling
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100