vutran6853 / vue3-chart-v2

vue3-chart-v2 is a wrapper for Chart.js in vue 3. You can easily create reuseable chart components. Inspired by vue-chartjs
https://vue3-chart-v2.netlify.app/
38 stars 30 forks source link

Error using with vite #17

Open jaguarsiva opened 2 years ago

jaguarsiva commented 2 years ago

In the browser's console, I get this error message and my page remains blank..

BaseChart.tsx:178 Uncaught (in promise) ReferenceError: React is not defined
    at Proxy.render (BaseChart.tsx:178)
    at renderComponentRoot (runtime-core.esm-bundler.js:434)

Why does this package throw an error saying React is not defined in an vue project ?

garstikaitis commented 2 years ago

@jaguarsiva Created a pull request to resolve this. Link to PR Hopefully it will get merged