You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Schematics seemed to have changed about "module" items with the 12.x and running ng generate module after update gives the following error :
$ ng g m dashboards/roadmap --routing=true --route=roadmap --module dashboards -d
Schematic input does not validate against the Schema: {"skipTests":true,"routing":true,"route":"roadmap","project":"frontend","module":"dashboards","name":"dashboards/roadmap"}
Errors:
Data path "" must NOT have additional properties(skipTests).
🔬 Minimal Reproduction
Having a project created with a cli < 12.0 and with the options --skipTests = true
Running ng update to migrate to 12.x version.
Running ng generate module xxxxx
🔥 Exception or Error
Schematic input does not validate against the Schema: {"skipTests":true,"routing":true,"route":"roadmap","project":"frontend","module":"dashboards","name":"dashboards/roadmap"}
Errors:
Data path "" must NOT have additional properties(skipTests).
Comparing with an app generated with the12.x cli (ng new xxxxx --skipTest=true), I could see the block "@schematics/angular:module" is not part of the "schematics" option of the angular anymore.
I tried to remove it from my project's angular.json and the error disappears.
That why I report this issue.
The text was updated successfully, but these errors were encountered:
🐞 Bug report
Command (mark with an
x
)Is this a regression?
No. I guess it comes with the 12.x evolutions of the framework.Description
Running the update from 11 to 12 forgets to remove the following schematics option of the angular.json (if it exists) :Schematics seemed to have changed about "module" items with the 12.x and running
ng generate module
after update gives the following error :🔬 Minimal Reproduction
ng update
to migrate to 12.x version.ng generate module xxxxx
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
Comparing with an app generated with the12.x cli (
ng new xxxxx --skipTest=true
), I could see the block "@schematics/angular:module" is not part of the "schematics" option of the angular anymore.I tried to remove it from my project's angular.json and the error disappears.
That why I report this issue.
The text was updated successfully, but these errors were encountered: