title: ERROR in No NgModule metadata found for 'AppModule'. i ｢wdm｣: Failed to compile
body: <p>Getting error, after I had updated the cli for implementing Angular4 carousel in Angular5. 
  ERROR in No NgModule metadata found for 'AppModule'.
      i ｢wdm｣: Failed to compile.</p>
  
  <pre><code>**Below is the version details.** 
  
  Angular CLI: 6.1.5    
  Node: 8.9.4    
  OS: win32 x64      
  Angular: 5.2.1   
  ... animations, common, compiler, compiler-cli, core, forms    
  ... http, language-service, platform-browser    
  ... platform-browser-dynamic, router    
  
  Package                           Version
  -----------------------------------------------------------
  @angular-devkit/architect         0.7.5    
  @angular-devkit/build-angular     0.7.5     
  @angular-devkit/build-optimizer   0.7.5     
  @angular-devkit/build-webpack     0.7.5     
  @angular-devkit/core              0.7.5     
  @angular-devkit/schematics        0.7.5      
  @angular/cli                      6.1.5     
  @ngtools/webpack                  6.1.5     
  @schematics/angular               0.7.5      
  @schematics/update                0.7.5      
  rxjs                              5.5.6    
  typescript                        2.5.3     
  webpack                           4.9.2     
  </code></pre>