angular / angular/angular-cli

[schematics] more details about the missing fields

Aperta
#16,150 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area: @angular-devkit/schematics freq1: low severity3: broken type: bug/fix
Lingua principale
TypeScript
Stelle
27k
Fork
11.8k
Merge medio
14h 23m
PR unite (30g)
162

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dal percorso di errore di Schematics coinvolto nella risoluzione della voce `init` in `collection.json`, quindi riproduci il caso in cui `externalSchematic()` richiama un altro schematic. Traccia come vengono identificati `init.schema.json` e lo schematic esterno; il lavoro è completato quando l'errore indica lo schematic a cui appartengono i campi mancanti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
cli, tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.