ionic-team / ionic-team/angular-toolkit

Generating component does not add declaration to module

未關閉
#243 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
73
分支
34
平均合併
6 分鐘
30 天內合併 PR
5

描述

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

貢獻指南

開啟貢獻指南

研究方向

使用兩個 ionic generate 命令重現問題,並檢查由 angular.json 中的 defaultCollection 設定所選取的 schematic。將產生的元件與 app/tstmdule/tstmdule.module.ts 進行比較;透過設定的 collection 產生時,如果模組在其 declarations 中包含 TstcmpntComponent,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, typescript
領域
cli, tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。