title: MatSidenavModule is not a reference
body: <p>I am using angular 10 and angular material versio 12.2.11
  As soon as I add MatSidenavModule and build the project its giving error
  ailed to compile entry-point @angular/material/sidenav (es2015 as esm2015) due to compilation errors:</p>
  <blockquote>
  <p>node_modules/@angular/material/fesm2015/sidenav.js:1513:26 - error NG1010: Value at position 3 in the NgModule.imports
  of MatSidenavModule is not a reference
  Value could not be determined statically.
  1513                 imports: [  ~ 1514                     CommonModule,
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ...1517                     CdkScrollableModule,
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1518                 ],     ~~~~~~~~~~~~~~~~~
  node_modules/@angular/material/fesm2015/sidenav.js:1517:21
  1517                     CdkScrollableModule,
  ~~~~~~~~~~~~~~~~~~~
  Unknown reference.</p>
  </blockquote>
  <p>I have tried
  1.clean npm cache
  2.deleting node module and package-lock.json and rebuilding
  3. update all dependencies ng update --all
  4.
  sometime getting thies error
  Maximum call stack size exceeded
  5.restarted VS
  It is likely that a function with infinite loop is being called</p>