[英]updated from angular 5 to angular 6 and can't build a dist folder anymore
this is my setup: 这是我的设置:
Angular CLI: 6.0.8
Node: 8.10.0
OS: win32 x64
Angular: 5.2.11
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
Package Version
------------------------------------------------------
@angular-devkit/architect 0.6.8
@angular-devkit/core 0.6.8
@angular-devkit/schematics 0.6.8
@angular/cli 6.0.8
@schematics/angular 0.6.8
@schematics/update 0.6.8
rxjs 5.5.11
typescript 2.4.2
And I've tried: 我尝试过:
I am now at a complete loss as to why the dist is not getting built, I'd really appreciate it if anybody could help 我现在完全不知道为什么dist没有被构建,如果有人可以帮助我,我将非常感谢
With Angular 6, you need RxJS 6. 使用Angular 6,您需要RxJS 6。
From the Docs: 从文档中:
6.0.0 (2018-05-03)
6.0.0(2018-05-03)
Dependency updates
依赖关系更新
@angular/core now depends on
@ angular / core现在取决于
- TypeScript 2.7
TypeScript 2.7
- RxJS 6.0.0
RxJS 6.0.0
- tslib 1.9.0
tslib 1.9.0
@angular/platform-server now depends on
@ angular / platform-server现在取决于
- Domino 2.0
多米诺骨牌2.0
— https://github.com/angular/angular/blob/master/CHANGELOG.md#dependency-updates
-https://github.com/angular/angular/blob/master/CHANGELOG.md#dependency-updates
感谢您的回答,但我的问题的解决方案有些尴尬...我通过jenkins构建dist文件夹,并在脚本中复制了package.json文件,因为我复制的每个package.json文件都指向在dist生成之前使用另一台服务器-因此所有更新都被旧的package.json文件覆盖(我忘了更新!!)...我告诉你这有些尴尬-谢谢您的宝贵时间不过,请欣赏
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.