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

chart.js module has no exported member SankeyDataPoint #97

Open
dtslvr opened this issue May 26, 2023 · 4 comments
Open

chart.js module has no exported member SankeyDataPoint #97

dtslvr opened this issue May 26, 2023 · 4 comments

Comments

@dtslvr
Copy link

dtslvr commented May 26, 2023

We are using chartjs-chart-sankey version 0.12.0. After upgrading chart.js from version 4.0.1 to 4.3.0, I'm getting the following errror for import { SankeyDataPoint } from 'chart.js';:

Module '"chart.js"' has no exported member 'SankeyDataPoint'.

Do you have any idea why it stopped working? Thanks for any advice.

@kurkle
Copy link
Owner

kurkle commented May 26, 2023

I would think it has to do with that issue: chartjs/Chart.js#11288

But maybe you should be importing it from 'chartjs-chart-sankey' instead?

@stockiNail
Copy link
Contributor

But maybe you should be importing it from 'chartjs-chart-sankey' instead?

I agree with @kurkle. The module augmentation needs anyway the import of chartjs-chart-sankey.

@dtslvr
Copy link
Author

dtslvr commented May 26, 2023

I would think it has to do with that issue: chartjs/Chart.js#11288

Thanks for the link, that does seem to be the problem.

But maybe you should be importing it from 'chartjs-chart-sankey' instead?

How can I import SankeyDataPoint? import { SankeyDataPoint } from 'chartjs-chart-sankey'; does not work as it is not exported.

@dtslvr
Copy link
Author

dtslvr commented Jul 27, 2023

@stockiNail I have just updated to chart.js 4.3.2, but import { SankeyDataPoint } from 'chart.js'; is still not compiling. I would be glad to receive any assistance.

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