chartjs-chart-sankey icon indicating copy to clipboard operation
chartjs-chart-sankey copied to clipboard

chart.js module has no exported member SankeyDataPoint

Open dtslvr opened this issue 2 years ago • 5 comments

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.

dtslvr avatar May 26 '23 06:05 dtslvr

I would think it has to do with that issue: https://github.com/chartjs/Chart.js/issues/11288

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

kurkle avatar May 26 '23 08:05 kurkle

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.

stockiNail avatar May 26 '23 09:05 stockiNail

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 avatar May 26 '23 13:05 dtslvr

@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.

dtslvr avatar Jul 27 '23 08:07 dtslvr