Error: Failed to compile entry-point @angular/material/card (es2015 as esm2015) due to compilation errors:
node_modules/@angular/material/core/common-behaviors/common-module.d.ts:36:22 - error NG6002: Appears in the NgModule.imports of MatCardModule, but could not be resolved to an NgModule class.
This likely means that the library (@angular/material/core) which declares MatCommonModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
解决办法:
tsconfig.json
"angularCompilerOptions": {
"enableIvy": false,
}
agularCompilerOptions 和 compilerOptions 是两个不同的项
网友评论