在角度8中添加带有cli的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)
答案 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”之后,