从Angular 8更新到Angular 9后,使用下面的mat-progress-button出现错误。在Angular 8中可以正常工作。MatProgressButton与Angular 9不兼容吗?
node_modules/mat-progress-buttons/esm2015/mat-progress-buttons.js:181:26 - error NG1010: Value at position 1 in the NgModule.imports of MatProgressButtonsModule is not a reference: [object Object]
导入语句如下:
import { MatProgressButtonsModule } from 'mat-progress-buttons';
我的 package.json 文件如下:
"dependencies": {
"@angular/animations": "^9.0.2",
"@angular/cdk": "^9.1.0",
"@angular/common": "~9.0.2",
"@angular/compiler": "~9.0.2",
"@angular/core": "~9.0.2",
"@angular/forms": "~9.0.2",
"@angular/material": "^9.1.0",
...
"@angular/router": "~9.0.2",
"core-js": "^2.5.4",
"mat-file-upload": "^1.3.2",
"mat-progress-buttons": "^8.0.7",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.900.3",
"@angular/cli": "~9.0.3",
"@angular/compiler-cli": "~9.0.2",
"@angular/language-service": "~9.0.2",
...
"typescript": "^3.7.5"
}
}