错误:处于非法状态:无法加载指令NgClass的摘要

时间:2018-07-16 17:23:42

标签: angular

ng build --prod

产生此错误

ERROR in : Illegal state: Could not load the summary for directive NgClass in /home/CAC_EAST/jhalliley/my-project/node_modules/@angular/common/common.d.ts.

我想知道这是否是版本问题。这是ng版本的输出:

Angular CLI: 6.0.8
Node: 8.10.0
OS: linux x64
Angular: 6.0.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.8
@angular-devkit/build-angular     0.6.8
@angular-devkit/build-optimizer   0.6.8
@angular-devkit/core              0.4.9
@angular-devkit/schematics        0.4.9
@angular/cdk                      5.2.5
@angular/cli                      6.0.8
@ngtools/json-schema              1.1.0
@ngtools/webpack                  6.0.8
@schematics/angular               0.6.8
@schematics/package-update        0.3.2
@schematics/update                0.6.8
rxjs                              6.2.2
typescript                        2.7.2
webpack                           4.8.3

我似乎无法在ubuntu或redhat上取得成功。想法?

0 个答案:

没有答案