angular / angular/angular-cli

[schematics] more details about the missing fields

オープン
#16,150 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: @angular-devkit/schematics freq1: low severity3: broken type: bug/fix
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
162

説明

Error: Schematic "init" is missing fields.
what exactly the missing fields?

```
//collection.json
{
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
"schematics": {
"init": {
"description": "creates a new builder",
"factory": "./index#init",
"schema": "./init.schema.json"
}
}
}
```
modify:
after houres of inspecting, the issue was from another schematic ( i.e: using externalSchematic() )
so, it is better to explain whitch schematic that this issue belongs to

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

`collection.json` の `init` エントリの解決に関係する Schematics のエラーパスから始め、次に `externalSchematic()` が別の schematic を呼び出すケースを再現します。`init.schema.json` と外部 schematic がどのように特定されるかを追跡します。エラーが不足しているフィールドを所有する schematic の名前を示せば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
cli, tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。