Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use gauge chart in pure typeScript projects #260

Open
raha1923 opened this issue Mar 8, 2018 · 3 comments
Open

use gauge chart in pure typeScript projects #260

raha1923 opened this issue Mar 8, 2018 · 3 comments

Comments

@raha1923
Copy link

raha1923 commented Mar 8, 2018

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
Copy link
Author

raha1923 commented Mar 8, 2018

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
Copy link

kuvelas commented Nov 6, 2018

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

require('highcharts/highcharts-more')(Highcharts);

@elninotorres
Copy link

Hi were you able to fix this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants