gevgeny / angular2-highcharts

:bar_chart: :chart_with_upwards_trend: Highcharts for your Angular project
MIT License
379 stars 113 forks source link

use gauge chart in pure typeScript projects #260

Open raha1923 opened 6 years ago

raha1923 commented 6 years ago

My project is created with pure typeScript and i need to use gauge in my project. When i try to use, i fall in problem and get error #17. I found out it will be solved if i use highcharts-more and try to solve with the following instructions:


import * as ChartModuleMore from 'highcharts/highcharts-more';
import * as Highcharts from "highcharts";

ChartModuleMore(Highcharts);

But when i try it, i get the following error:

"/node_modules/@types/highcharts/highcharts-more"' resolves to a non-module entity and cannot be imported using this construct.

package version
highcharts 4.2.6
types/highcharts 5.0.19
raha1923 commented 6 years ago

when i try the column chart or any other one that aren't depended to the highcharts-more, every thing is ok and it run right like what i want.

kuvelas commented 6 years ago

in case anyone is still using this dead library, add this under the import of Highcharts

require('highcharts/highcharts-more')(Highcharts);
elninotorres commented 5 years ago

Hi were you able to fix this issue