Angular6 -> 构建错误
Angular6 -> Build error
我曾经使用以下命令构建 angular 5 个项目:
ng build --prod --locale=de --base-href /onlineshopNP/de/ -op dist/de
我已将我的项目更新为 angular 6,当我调用该命令时,出现如下错误:
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)
有人能帮帮我吗?
感谢
我从版本 5 更新到版本 6 时遇到了类似的问题。试试
这是一个用于定义迁移步骤的实用程序。希望对你有帮助。
看来问题出在 RxJS 上,你能安装 rxjs-compat 并检查一下吗
使用最新的 angular-cli 创建一个新的 ng 项目,并将 angular.json 与您项目的 angular.json 进行比较。
您或许能解决我们的问题。
我曾经使用以下命令构建 angular 5 个项目:
ng build --prod --locale=de --base-href /onlineshopNP/de/ -op dist/de
我已将我的项目更新为 angular 6,当我调用该命令时,出现如下错误:
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)
有人能帮帮我吗?
感谢
我从版本 5 更新到版本 6 时遇到了类似的问题。试试
这是一个用于定义迁移步骤的实用程序。希望对你有帮助。
看来问题出在 RxJS 上,你能安装 rxjs-compat 并检查一下吗
使用最新的 angular-cli 创建一个新的 ng 项目,并将 angular.json 与您项目的 angular.json 进行比较。 您或许能解决我们的问题。