score:-1

I commented out the top line of the file 'node_modules/angular-highcharts/chart.d.ts':

<reference type="highcharts">

This prevented the error and the Module seems to be working fine.

score:0

You can try the Following to you app.module

import {ChartModule} from "angular2-highcharts";
import {HighchartsStatic} from "angular2-highcharts/dist/HighchartsService";
export function highchartsFactory() {
  var hc = require('highcharts');
  var hcm = require('highcharts/highcharts-more');
  var exp = require('highcharts/modules/exporting');
  var drill = require('highcharts/modules/drilldown');

  hcm(hc);
  exp(hc);
  drill(hc)
  return hc;
}
@NgModule({
..
providers: [
    {
      provide: HighchartsStatic,
      useFactory: highchartsFactory
    }
  ],
  })

Working Link

I had done this long back so if anything breaks please pardon me but it works with Angular pentagonal donut

score:0

You Need to add typings to make it highcharts available , you can add by below commend :

npm install --save @types/highcharts

score:19

npm install --save @types/highcharts


Related Query

More Query from same tag