We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We are trying to use Chart.js in our project, which uses mostly plain js (with TypeScript). We downgraded TypeScript to 4.3 to mitigate #9666.
We are using rollup as a bundler and followed the hint here: https://www.chartjs.org/docs/latest/getting-started/integration.html#bundlers-webpack-rollup-etc
But it seems that there are no matching type declarations for these helper functions
error TS2307: Cannot find module 'chart.js/auto' or its corresponding type declarations.
this is basically our code:
import Chart from 'chart.js/auto'; let barchartCanvas = document.getElementById('barchart')! as HTMLCanvasElement; let ctx = barchartCanvas .getContext('2d')!; let myChart = new Chart(ctx, { type: 'bar', data: { // ... }, });
Are we doing something wrong?
The text was updated successfully, but these errors were encountered:
Not able to reproduce: https://codesandbox.io/s/ecstatic-greider-ysde2?file=/src/index.ts
Sorry, something went wrong.
Closing as stale
No branches or pull requests
We are trying to use Chart.js in our project, which uses mostly plain js (with TypeScript).
We downgraded TypeScript to 4.3 to mitigate #9666.
We are using rollup as a bundler and followed the hint here: https://www.chartjs.org/docs/latest/getting-started/integration.html#bundlers-webpack-rollup-etc
But it seems that there are no matching type declarations for these helper functions
this is basically our code:
Are we doing something wrong?
The text was updated successfully, but these errors were encountered: