Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSchematic with multi select x-promt errors when using command line parameter: 'path ".foo" should be array' #16320
Milestone
Comments
This comment has been minimized.
This comment has been minimized.
|
This is somewhat related to #12150 but in this case it's for Array's |
This comment has been minimized.
This comment has been minimized.
|
It seems that the cause of this error is somewhere in InvalidInputOptions seems to be called with an object of {"name":"paul"} instead of: {"name":["paul"]}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Command (mark with an
x)Is this a regression?
No, it's not. Multi select prompt is just supported within angular cli >
9.0.0-rc.3.Description
Creating an angular schematic that prompts the user for multiple options is possible since #16104. The prompt works quite good now but using the command line for multi selections will cause an error:
At first I opened an issue for the docs because I thought it's just not documented: angular/angular#33851 But after checking the implementation of the angular guard schematic which has
--implementsparameter (which works) and creating the minimal reproduction repo (see underneath), I think it's a bug somewhere in@angular-devkit/schematics-cli.I created a very minimal repo for reproduction:
https://github.com/d-koppenhagen/ngx-multi-select-schematic
npm i -g @angular-devkit/schematics-cli@next git clone git@github.com:d-koppenhagen/ngx-multi-select-schematic.git cd ngx-multi-select-schematic npm i