Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular6 -> Build error

I used to build my angular 5 projects with command:

ng build --prod --locale=de --base-href /onlineshopNP/de/ -op dist/de

I've updated my project to angular 6 and when I call the command, I'm getting an error like this:

Schema validation failed with the following errors: Data path "" should NOT have additional properties (o). Error: Schema validation failed with the following errors: Data path "" should NOT have additional properties (o). at MergeMapSubscriber.registry.compile.pipe.operators_1.concatMap.validatorResult [as project] (C:\Users\martin.kuenz\Documents\Angular\webshop\node_modules\@angular-devkit\architect\src\architect.js:218:39) at MergeMapSubscriber._tryNext (C:\Users\martin.kuenz\Documents\Angular\webshop\node_modules\@angular-devkit\architect\node_modules\rxjs\operators\mergeMap.js:122:27) at MergeMapSubscriber._next (C:\Users\martin.kuenz\Documents\Angular\webshop\node_modules\@angular-devkit\architect\node_modules\rxjs\operators\mergeMap.js:112:18) at MergeMapSubscriber.Subscriber.next (C:\Users\martin.kuenz\Documents\Angular\webshop\node_modules\@angular-devkit\architect\node_modules\rxjs\Subscriber.js:90:18) at MergeMapSubscriber.notifyNext (C:\Users\martin.kuenz\Documents\Angular\webshop\node_modules\@angular-devkit\architect\node_modules\rxjs\operators\mergeMap.js:145:30) at InnerSubscriber._next (C:\Users\martin.kuenz\Documents\Angular\webshop\node_modules\@angular-devkit\architect\node_modules\rxjs\InnerSubscriber.js:23:21) at InnerSubscriber.Subscriber.next (C:\Users\martin.kuenz\Documents\Angular\webshop\node_modules\@angular-devkit\architect\node_modules\rxjs\Subscriber.js:90:18) at SafeSubscriber.__tryOrSetError (C:\Users\martin.kuenz\Documents\Angular\webshop\node_modules\@angular-devkit\core\node_modules\rxjs\Subscriber.js:248:16) at SafeSubscriber.next (C:\Users\martin.kuenz\Documents\Angular\webshop\node_modules\@angular-devkit\core\node_modules\rxjs\Subscriber.js:188:27) at MapSubscriber._next (C:\Users\martin.kuenz\Documents\Angular\webshop\node_modules\@angular-devkit\core\node_modules\rxjs\operators\map.js:85:26)

Can anybody help me?

Thx

like image 701
StoRm Tec Avatar asked Mar 20 '18 07:03

StoRm Tec


1 Answers

Create a fresh ng project using latest angular-cli and compare angular.json with your project's angular.json. You might be able to figure our the issue.

like image 190
Pradeep Raj Avatar answered Oct 17 '22 09:10

Pradeep Raj