在Ang角8 ng中添加带有cli的ng-zorro-antd时出错

时间:2019-07-24 05:01:53

标签: angular ng-zorro-antd

在角度8中添加带有cli的ng-zorro-antd时出现此问题。 请按照以下步骤操作:

  1. ng新的PROJECT_NAME
  2. cd PROJECT_NAME
  3. ng添加ng-zorro-antd

我的配置是:

Angular CLI: 7.2.1
Node: 10.15.3
OS: win32 x64
@angular-devkit/architect    0.12.1 (cli-only)
@angular-devkit/core         7.2.1 (cli-only)
@angular-devkit/schematics   7.2.1 (cli-only)
@schematics/angular          7.2.1 (cli-only)
@schematics/update           0.12.1 (cli-only)

1 个答案:

答案 0 :(得分:0)

通过以下步骤解决:

npm update @angular/cli @angular/cdk rxjs
npm install -S @angular/material @angular/cdk @angular/animations
npm uninstall @angular/core
npm install -S @angular/core

,然后在tsconfig.json中将模块“ es2015”更改为模块“ esnext”之后,