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

TypeError: Cannot read property 'getContext' of undefined #4

Open ThaiBinh-13 opened 3 years ago

ThaiBinh-13 commented 3 years ago

Hello, I'm facing an issue that i cannot render my chart in vue3, the Error is TypeError: Cannot read property 'getContext' of undefined at Proxy.renderChart (BaseChart.tsx?b4f3:124). Which is thrown in BaseChart.tsx line 124

mberneis commented 3 years ago

I got a similar problem - Initial warning is

app.js:formatted:8604 [Vue warn]: Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function

and later the same getContext error because of the missing ref

Uncaught (in promise) TypeError: Cannot read property 'getContext' of undefined
    at Proxy.renderChart (app.js:formatted:103091)
edgimopeter commented 3 years ago

I had this error, and resolved it by removing the empty tag from my component file. It only needs the Githubissues.

  • Githubissues is a development platform for aggregating issues.