title: Invalid module name in augmentation. Module 'chart.js' resolves to an untyped module at '/src/chart.js', which cannot be augmented
body: <p>I'm creating barchart using ng2-chart library for charts. I got the following error while <code>ng serve</code>:</p>
  
  <blockquote>
    <p>ERROR in
    node_modules/chartjs-plugin-datalabels/types/index.d.ts(5,16): error
    TS2665: Invalid module name in augmentation. Module 'chart.js'
    resolves to an untyped module at
    '/node_modules/chart.js/src/chart.js', which cannot be augmented.</p>
  </blockquote>
  
  <p>I want some datalabels on barchart. </p>
  
  <p>So I added 'chartjs-plugin-datalabels' in component. </p>
  
  <p>When I add following lines in my code, this error occurs.</p>
  
  <pre><code>import * as pluginDataLabels from 'chartjs-plugin-datalabels';
  
  export class AnalysisComponent implements OnInit {
      public barChartPlugins = [pluginDataLabels];
  }
  </code></pre>
  
  <p>Version of libraries</p>
  
  <pre><code>"chart.js": "^2.7.3",
  "ng2-charts": "^1.6.0",
  "chartjs-plugin-datalabels": "^0.6.0",
  </code></pre>
  
  <p>Any help will be appreciated.</p>