Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error ofcompilation in angular 9 #28

Open
pingouin-creation opened this issue May 26, 2020 · 2 comments
Open

Error ofcompilation in angular 9 #28

pingouin-creation opened this issue May 26, 2020 · 2 comments

Comments

@pingouin-creation
Copy link

pingouin-creation commented May 26, 2020

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 pingouin-creation changed the title Error coof compilation in angular 9 Error ofcompilation in angular 9 May 26, 2020
@aish16
Copy link

aish16 commented Aug 8, 2020

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';

@achilehero
Copy link

achilehero commented Jan 7, 2021

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! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants