Ошибка в ng build с флагами угловыми 6 - PullRequest
0 голосов
/ 11 июня 2018

У меня возникает ошибка, когда я пытаюсь создать свое приложение с некоторыми флагами, если я пытаюсь собрать его только с ng build, оно работает, но если я использую эти флаги: ng build -aot -vc -cc -dop --buildOptimize

У меня есть этоошибки:

Конфигурация ',,' не найдена в проекте 'rebus-cli'.Ошибка: не удалось найти конфигурацию «,,» в проекте «rebus-cli».в Architect.getBuilderConfiguration (c: \ Users \ Utente \ Desktop \ Workspace \ rebus \ node_modules \ @ angular-devkit \ architect \ src \ architect.js: 106: 23) в MergeMapSubscriber._loadWorkspaceAndArchitect.pipe.operators_1.concatMap [как проект] (c: \ Users \ Utente \ Desktop \ Workspace \ rebus \ node_modules \ @angular \ cli \ models \ architect-command.js: 64: 55) в MergeMapSubscriber._tryNext (c: \ Users \ Utente \ Desktop \ Workspace \rebus \ node_modules \ @angular \ cli \ node_modules \ rxjs \ internal \ operator \ mergeMap.js: 122: 27) в MergeMapSubscriber._next (c: \ Users \ Utente \ Desktop \ Рабочая область \ rebus \ node_modules \ @angular \ cli \node_modules \ rxjs \ internal \ operator \ mergeMap.js: 112: 18) в MergeMapSubscriber.Subscriber.next (c: \ Users \ Utente \ Desktop \ Workspace \ rebus \ node_modules \ @angular \ cli \ node_modules \ rxjs \ internal \ подписчик.js: 103: 18) в TapSubscriber._next (c: \ Users \ Utente \ Desktop \ Workspace \ rebus \ node_modules \ @angular \ cli \ node_modules \ rxjs \ internal \ operator \ tap.js: 109: 26) в TapSubscriber.Subscriber.next (c: \ Users \ Utente \ Desktop \ Workspace \ rebus \ node_modules \ @angular \ cli \ node_modules \ rxjs \ internal \ Subscriber.js: 103: 18) в MergeMapSubscriber.notifyNext (c: \ Users \ Utente \ Рабочий стол \ Рабочая область \ rebus \ node_modules \ @angular \ cli \node_modules \ rxjs \ internal \ operator \ mergeMap.js: 141: 26) в InnerSubscriber._next (c: \ Users \ Utente \ Desktop \ Рабочая область \ rebus \ node_modules \ @angular \ cli \ node_modules \ rxjs \ internal \ InnerSubscriber.js: 30: 21) at InnerSubscriber.Subscriber.next (c: \ Users \ Utente \ Desktop \ Workspace \ rebus \ node_modules \ @angular \ cli \ node_modules \ rxjs \ internal \ Subscriber.js: 103: 18)

У меня нет ошибок в angular.json file

1 Ответ

0 голосов
/ 15 июня 2018

Попробуйте использовать --code-coverage вместо -cc - кажется, что-то.смешивается с параметром -c --configuration.

...