title: Angular6 argument expression expected error
body: <p>I'm not sure at all how to resolve this after googling extensively, but basically I'm getting the following error with the follow app.module.ts:</p>
  
  <p>Argument expression expected.</p>
  
  <pre><code>@NgModule({
    declarations: [
      AppComponent,
      DashboardComponent,
      NewsitemComponent,
      InputClearableComponent,
      CreditsComponent,
      CompanyPortfolioComponent,
      EspComponent,
      CcstComponent,
      SearchNewsPipe,
      AssumptionsComponent,
      JojoComponent,
      SectorComponent
    ],
    imports: [
      BrowserModule,
      FormsModule,
      NgbModule.forRoot(),
      MatFormFieldModule,
      MatInputModule,
      MatIconModule,
      ChartModule.forRoot(require('highcharts'),
      MatButtonModule,
      AppRoutingModule,
      BrowserAnimationsModule,
    ],
    providers: [SearchNewsPipe],
    bootstrap: [AppComponent]
  })
  export class AppModule {
  
  }
  </code></pre>
  
  <p><strong>edit:</strong></p>
  
  <p>If I delete the trailing comma I get the following error instead:</p>
  
  <p>',' expected.</p>
  
  <p>No idea what's going on here.</p>