Unable to execute schematics with object configured via angular.json #19492
Labels
area: devkit/core
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, this worked in 11.0.1 / until #18945
Description
It is impossible to start a schematic that has an option of type object where that object comes filled in via the angular.json file.
🔬 Minimal Reproduction
Clone https://github.com/bgotink/angular-cli-repro-19492
Run
ng g @repro/schematics:test
, get an error.Comment/delete the default configuration from
schematics
in angular.json.Run
ng g @repro/schematics:test
again, it'll succeed this time.🔥 Exception or Error
The error is thrown at
angular-cli/packages/angular_devkit/core/src/utils/object.ts
Line 43 in 707e03f
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: