After migrating Angular from version 15 to 16, user-created components and Material components are throwing the following errors:
error NG8001: 'component-name' is not a known element(both material components and user-created components)
error NG8002: Can't bind to 'ngClass' since it isn't a known property of 'div'.
error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'textarea'.
error NG8002: Can't bind to 'showCustomerFeedback' since it isn't a known property of 'app-session-properties'.
error NG8002: Can't bind to 'dataSource' since it isn't a known property of 'table'.
error NG8003: No directive found with exportAs 'matMenu'.
error NG8004: No pipe found with name 'date'.
I have configured the app.module.ts file as per the documentation, but these issues persist for all Material and user-created components.
Could you please provide a solution for these issues?