ionic-team / ionic-team/angular-toolkit

Generating component does not add declaration to module

Aberta
#243 0 comentários 0 reações 0 responsáveis Ver no GitHub
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

Abrir o 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

Receba novas issues na sua caixa de entrada

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