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

This library is not working with typescript #181

Open
sagar1111212121 opened this issue Oct 27, 2021 · 2 comments
Open

This library is not working with typescript #181

sagar1111212121 opened this issue Oct 27, 2021 · 2 comments

Comments

@sagar1111212121
Copy link

sagar1111212121 commented Oct 27, 2021

How can I make this library work with React + Typescript + yarn. I do not find any declaration file and so we are not able to import this library into our component as we get error during compilation.

Please help us here as this is one and only available library for multiple X axis and we do need this to work with our setup (React + Typescript + yarn). ......Open for suggestions.......

MultiXLibIssue

We also tried using below commands but we are getting errors saying file not found.

  1. npm i --save-dev @types/highcharts-grouped-categories (Tried this one even though we are using yarn)
  2. yarn add @types/highcharts-grouped-categories

Declaraction File Error

@pawelfus
Copy link
Collaborator

Hi @sagar1111212121

My apologies for the late reply! Our plugin does not provide TypeScript definitions.

@sagar1111212121
Copy link
Author

@pawelfus thanks for the reply. I was able to make it work using below solution.

We created one declaration file (d.ts) file and declared 'declare module 'highcharts-grouped-categories';' this module.

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

2 participants