I have updated Angular from version 8 to 9. I have observed that in app.module.ts, the following has changed from
import { MatRadioModule } from '@angular/material';
To
import { MatRadioModule } from '@angular/material/radio';
Now, I am getting the following error on ng build.
- If 'mat-radio-button' is an Angular component, then verify that it is part of this module.
- If 'mat-radio-button' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
I have tried adding CUSTOM_ELEMENTS_SCHEMA or NO_ERRORS_SCHEMA to app module with no luck.
import { NO_ERRORS_SCHEMA } from '@angular/core';
schemas: [NO_ERRORS_SCHEMA]
What will be the issue? Thanks!!
Update:
I have found similar issue here: Angular compilation fails after upgrade to Angular v9 and enabling Ivy