mat-select-autocomplete icon indicating copy to clipboard operation
mat-select-autocomplete copied to clipboard

Error ofcompilation in angular 9

Open pingouin-creation opened this issue 4 years ago • 2 comments

getting an error of compilation:

ERROR in Failed to compile entry-point mat-select-autocomplete (module as esm5) due to compilation errors:
node_modules/mat-select-autocomplete/fesm5/mat-select-autocomplete.js:282:30 - error NG1010: Value at position 3 in the NgModule.imports of SelectAutocompleteModule is not a reference: [object Object]

pingouin-creation avatar May 26 '20 20:05 pingouin-creation

I am getting the same exception. Is any one working on this ? It looks like the 2 files are referring to older version of Material components:

Existing: import { MatButtonModule, MatCheckboxModule } from '@angular/material';

Expected: import { MatButtonModule} from '@angular/material/button'; import { MatCheckboxModule} from '@angular/material/checkbox';

aish16 avatar Aug 08 '20 13:08 aish16

No, it's just that angular 10 has ivy enabled by default, which supports tree-shaking, so you need to include each component on it's own. I have a PR for that open, so @malothnaresh , maybe you can check it.

Thanks! :)

achilehero avatar Jan 07 '21 09:01 achilehero