angular / angular/angular-cli

[schematics] more details about the missing fields

未关闭
#16,150 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area: @angular-devkit/schematics freq1: low severity3: broken type: bug/fix
主要语言
TypeScript
星标
27k
派生
11.8k
平均合并
14 小时 23 分钟
30 天内合并 PR
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 摘要。