wishtack-steroids
wishtack-steroids copied to clipboard
schematics scam: angular 12 ?
ng generate @wishtack/schematics:scam features/xxx
after upgrade angular 9 to angular 12 I have this errror :
"WishtackSchematicsScam" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID.
Schematic input does not validate against the Schema: {"name":"features/dashboard/widgets/xxxxxxx","project":"xxxxx","inlineStyle":false,"inlineTemplate":false,"changeDetection":"Default","styleext":"css","style":"css","spec":true,"skipTests":false,"flat":false,"skipImport":false,"entryComponent":false,"lintFix":false,"separateModule":false}
Errors:
Data path "" must NOT have additional properties(inlineStyle).
"@angular/animations": "12.1.1",
"@angular/cdk": "12.1.0",
"@angular/common": "12.1.1",
"@angular/compiler": "12.1.1",
"@angular/core": "12.1.1",
"@angular/forms": "12.1.1",
"@angular/material": "12.1.0",
"@angular/material-moment-adapter": "12.1.0",
"@angular/platform-browser": "12.1.1",
"@angular/platform-browser-dynamic": "12.1.1",
"@angular/router": "12.1.1",
"@wishtack/schematics": "^1.1.2",
Been struggling with this after I upgraded a project to Angular 12 too.
For what its worth, Angular 14 will be introducing standalone components (see https://angular.io/guide/standalone-components)
In the mean time, I have resorted to writing a NodeJS script to do the deed, available in https://gist.github.com/altbdoor/e63d02b63654be51b95a1e5c7ad253fd