Angular v5项目中生产版本构建失败>>全局CLI版本为6.x

时间:2018-12-11 06:24:09

标签: angular angular5 angular-cli-v6

我正在尝试构建用于生产的我的角度应用程序。我收到错误ERROR in Either route or analyzedModules has to be specified。我已经搜索了解决方案,它们都建议降级CLI版本,但是我不想降级CLI版本。

Angular CLI: 6.2.7
Node: 8.10.0
OS: linux x64
Angular: 5.2.9
... animations, common, compiler, core, forms, http
... platform-browser, platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.8.7
@angular-devkit/build-angular     0.8.7
@angular-devkit/build-optimizer   0.8.7
@angular-devkit/build-webpack     0.8.7
@angular-devkit/core              0.8.7
@angular-devkit/schematics        0.8.7
@angular/cli                      6.2.7
@angular/compiler-cli             6.1.10
@angular/language-service         6.1.10
@ngtools/webpack                  6.2.7
@schematics/angular               0.8.7
@schematics/update                0.8.7
rxjs                              5.5.12
typescript                        2.9.2
webpack                           4.16.4`
`

任何帮助将不胜感激。

0 个答案:

没有答案