Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Switch codesandbox templates to vitepress

Open LeeLenaleee opened this issue 3 years ago • 3 comments

Expected behavior

codesandbox templates should work with V4

Current behavior

They don't want to import chart.js

Reproducible sample

https://codesandbox.io/s/react-chartjs-2-chart-js-issue-template-forked-64m243

Optional extra steps/info to reproduce

No response

Possible solution

switching to VITE

https://github.com/reactchartjs/react-chartjs-2/issues/1110

https://github.com/reactchartjs/react-chartjs-2/commit/0f93ce870ba39a7cd7b911fee8f87d7d69f1ef54

Context

No response

chart.js version

4.0.1

Browser name and version

No response

Link to your project

No response

LeeLenaleee avatar Nov 25 '22 08:11 LeeLenaleee

Or, you can use https://github.com/xr0master/chartjs-react and forgot about these issues at all :)

xr0master avatar Nov 29 '22 11:11 xr0master

No because the same issue seems to happen for vue and angular

LeeLenaleee avatar Nov 29 '22 12:11 LeeLenaleee

@LeeLenaleee right, but it's codesandbox issue. In stackblitz it works perfectly: https://stackblitz.com/edit/react-ts-i4bdr9

xr0master avatar Nov 29 '22 14:11 xr0master