I'm converting a library (ng-app-state) to use the angular cli, now that v6 supports libraries (yay!).
When trying to run certain CLI commands it fails with an error like this:
$ ng test --source-map ng-app-state
Architect commands with multiple targets cannot specify overrides.'test' would be run on the following projects: ng-app-state-monorepo,ng-app-state
Error: Architect commands with multiple targets cannot specify overrides.'test' would be run on the following projects: ng-app-state-monorepo,ng-app-state
at TestCommand.validate (S:\Programming\git repositories\ng-app-state-monorepo\node_modules\@angular\cli\models\architect-command.js:91:23)
You need to put the library name first, and the options afterward. E.g.
# do this
$ ng test ng-app-state --watch=true --source-map
# don't do this
$ ng test --watch=true --source-map ng-app-state
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With