Angular6 - >构建错误

时间:2018-03-20 07:52:01

标签: angular angular-cli angular6

我曾经用命令构建我的角度5项目:

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

我已将项目更新为angular 6,当我调用命令时,我收到如下错误:

  

架构验证失败,并出现以下错误:     数据路径“”不应具有其他属性(o)。   错误:架构验证失败,并出现以下错误:     数据路径“”不应具有其他属性(o)。       在MergeMapSubscriber.registry.compile.pipe.operators_1.concatMap.validatorResult [作为项目](C:\ Users \ martin.kuenz \ Documents \ Angular \ webshop \ node_modules \ @ angular-devkit \ architect \ src \ architect.js:218 :39)       在MergeMapSubscriber._tryNext(C:\ Users \ martin.kuenz \ Documents \ Angular \ webshop \ node_modules \ @ angular-devkit \ architect \ node_modules \ rxjs \ operators \ mergeMap.js:122:27)       在MergeMapSubscriber._next(C:\ Users \ martin.kuenz \ Documents \ Angular \ webshop \ node_modules \ @ angular-devkit \ architect \ node_modules \ rxjs \ operators \ mergeMap.js:112:18)       在MergeMapSubscriber.Subscriber.next(C:\ Users \ martin.kuenz \ Documents \ Angular \ webshop \ node_modules \ @ angular-devkit \ architect \ node_modules \ rxjs \ Subscriber.js:90:18)       在MergeMapSubscriber.notifyNext(C:\ Users \ martin.kuenz \ Documents \ Angular \ webshop \ node_modules \ @ angular-devkit \ architect \ node_modules \ rxjs \ operators \ mergeMap.js:145:30)       在InnerSubscriber._next(C:\ Users \ martin.kuenz \ Documents \ Angular \ webshop \ node_modules \ @ angular-devkit \ architect \ node_modules \ rxjs \ InnerSubscriber.js:23:21)       在InnerSubscriber.Subscriber.next(C:\ Users \ martin.kuenz \ Documents \ Angular \ webshop \ node_modules \ @ angular-devkit \ architect \ node_modules \ rxjs \ Subscriber.js:90:18)       在SafeSubscriber .__ tryOrSetError(C:\ Users \ martin.kuenz \ Documents \ Angular \ webshop \ node_modules \ @ angular-devkit \ core \ node_modules \ rxjs \ Subscriber.js:248:16)       在SafeSubscriber.next(C:\ Users \ martin.kuenz \ Documents \ Angular \ webshop \ node_modules \ @ angular-devkit \ core \ node_modules \ rxjs \ Subscriber.js:188:27)       在MapSubscriber._next(C:\ Users \ martin.kuenz \ Documents \ Angular \ webshop \ node_modules \ @ angular-devkit \ core \ node_modules \ rxjs \ operators \ map.js:85:26)

有人能帮助我吗?

THX

3 个答案:

答案 0 :(得分:1)

使用最新的angular-cli创建一个新的ng项目,并将angular.json与项目的angular.json进行比较。 您也许可以解决我们的问题。

答案 1 :(得分:0)

从版本5更新到版本6时,我遇到了类似的问题。尝试

https://update.angular.io/

这是一个用于定义迁移步骤的实用程序。希望对您有所帮助。

答案 2 :(得分:0)

似乎RxJS引起了问题,您可以安装rxjs-compat并进行检查