Skip to content

ng g @angular/core:standalone --defaults does not use defaults #48845

@cexbrayat

Description

@cexbrayat

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

No

Description

I was expected (maybe wrongly) that ng g @angular/core:standalone --defaults would use convert-to-standalone for the mode value and ./ for the path value, but it throws with:

Schematic input does not validate against the Schema: {}
Errors:

  Data path "" must have required property 'mode'.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 15.2.0-next.1
Node: 16.17.0
Package Manager: npm 8.19.3
OS: darwin arm64

Angular: 15.2.0-next.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1502.0-next.1
@angular-devkit/build-angular   15.2.0-next.1
@angular-devkit/core            15.2.0-next.1
@angular-devkit/schematics      15.2.0-next.1
@angular/cli                    15.2.0-next.1
@schematics/angular             15.2.0-next.1
rxjs                            7.6.0
typescript                      4.8.4

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area: coreIssues related to the framework runtimearea: migrationsIssues related to `ng update`/`ng generate` migrationsstate: has PR

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions