title: 'mat-select' is not a known element when making build in angular 5
body: <p>I am using lazy loading in my Angular 5 project and I have a shared module in which all the material components are imported and I use this shared module in my other module for material modules.</p>
  
  <p>All components are working fine in development mode but when I make build for production it shows error that <code>'mat-select'</code> is not a known element without showing any line number.</p>
  
  <p>I have imported shared module in my components that are using angular material and also in my <code>app.component.ts</code> file. I searched everywhere but no luck.</p>