“在‘@angular/cdk/collections’中找不到导出‘_DisposeViewRepeaterStrategy’
"export '_DisposeViewRepeaterStrategy' was not found in '@angular/cdk/collections'
在 Angular 应用程序中遇到以下错误。
ERROR in ./node_modules/@angular/material/__ivy_ngcc__/fesm2015/table.js 58:58-86
"export '_DisposeViewRepeaterStrategy' was not found in '@angular/cdk/collections'
尝试过:
- 运行
npm install --save @angular/cdk
- 删除 node_modules 并重新安装。
但是没用
我今天也遇到了这个问题,对我来说问题是@angular/cdk 和@angular/material 之间的不匹配。
"@angular/cdk": "~10.1.3",
"@angular/material": "^10.1.3" <-- this becomes 10.2.0
在 Angular 应用程序中遇到以下错误。
ERROR in ./node_modules/@angular/material/__ivy_ngcc__/fesm2015/table.js 58:58-86
"export '_DisposeViewRepeaterStrategy' was not found in '@angular/cdk/collections'
尝试过:
- 运行
npm install --save @angular/cdk
- 删除 node_modules 并重新安装。
但是没用
我今天也遇到了这个问题,对我来说问题是@angular/cdk 和@angular/material 之间的不匹配。
"@angular/cdk": "~10.1.3",
"@angular/material": "^10.1.3" <-- this becomes 10.2.0