You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When creating a new component using the command ng g c component-name, the component is successfully created but it is not added to app.module.ts. I always have to add the component in the module manually. I didn't have that problem with nativescript 6
To Reproduce
The commands I have tried : ng generate component component-name ng g c component-name ng g c component-name --m app.module.ts ng g c app.module.ts/component-name ng g component component-name --module=app.module.ts ng g c component-name -m app.module.ts
None of those commands add the component in the app.module after creating it
Expected behavior
The component is created and automatically added to declarations in app.module
The text was updated successfully, but these errors were encountered:
Environment
Nativescript : 8.2.3
Angular CLI: 10.1.1
Angular: 13.2.7
Describe the bug
When creating a new component using the command
ng g c component-name
, the component is successfully created but it is not added to app.module.ts. I always have to add the component in the module manually. I didn't have that problem with nativescript 6To Reproduce
The commands I have tried :
ng generate component component-name
ng g c component-name
ng g c component-name --m app.module.ts
ng g c app.module.ts/component-name
ng g component component-name --module=app.module.ts
ng g c component-name -m app.module.ts
None of those commands add the component in the app.module after creating it
Expected behavior
The component is created and automatically added to declarations in app.module
The text was updated successfully, but these errors were encountered: