ionic-team / ionic-team/angular-toolkit

Generating component does not add declaration to module

Abierto
#243 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
73
Forks
34
Merge medio
6 min
PR fusionados (30 d)
5

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
cli, tooling
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.