title: Cannot use ng2-charts with Ionic 3 (ionic-angular 3.9.4)
body: <p>So I'm trying to setup ng2-charts for my project, but as soon as I import the module in app.module.ts <code>import</code> section, it gives me the following error message:</p>
  
  <pre><code>Uncaught TypeError: Object(...) is not a function
      at ng2-charts.js:230
      at Object.&lt;anonymous&gt; (ng2-charts.js:232)
      at __webpack_require__ (bootstrap 1f12d1e1e27208e77f22:54)
      at Object.286 (main.ts:5)
      at __webpack_require__ (bootstrap 1f12d1e1e27208e77f22:54)
      at Object.264 (main.ts:1)
      at __webpack_require__ (bootstrap 1f12d1e1e27208e77f22:54)
      at webpackJsonpCallback (bootstrap 1f12d1e1e27208e77f22:25)
      at main.js:
  </code></pre>
  
  <p>And if we check the line in ng2-charts.js file -</p>
  
  <pre><code>/** @nocollapse */ ThemeService.ngInjectableDef = defineInjectable({ factory: function ThemeService_Factory() { return new ThemeService(); }, token: ThemeService, providedIn: "root" });
  </code></pre>
  
  <p>I have installed chart.js and imported it in app.component.ts file as following -</p>
  
  <pre><code>import '../../node_modules/chart.js/dist/Chart.bundle.min.js';
  import '../../node_modules/chart.js/dist/Chart.min.js';
  </code></pre>
  
  <p>And this is how the app.module.ts file import section looks like -</p>
  
  <pre><code>/**
   * Import Angular and Ionic libraries.
   */
  import { BrowserModule } from '@angular/platform-browser';
  import { ErrorHandler, NgModule } from '@angular/core';
  import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
  
  /**
   * Import third-party libraries.
   */
  import { ChartsModule } from 'ng2-charts';
  
  @NgModule({
    declarations: [
      ...
    ],
    imports: [
      BrowserModule,
      IonicModule.forRoot(EnlightMobileApp),
      IonicStorageModule.forRoot(),
      ChartsModule
    ],
    bootstrap: [IonicApp],
    entryComponents: [
      ...
    ],
    providers: [
      ...
    ]
  })
  export class AppModule {}
  
  </code></pre>