dumptyd / vue-css-donut-chart

Lightweight Vue component for drawing pure CSS donut charts
https://dumptyd.github.io/vue-css-donut-chart/
MIT License
128 stars 19 forks source link

Cannot read properties of undefined (reading '_c') #65

Closed leoncarey closed 1 year ago

leoncarey commented 1 year ago

I've ran but show this error: Cannot read properties of undefined (reading '_c')

My code:

import Donut from 'vue-css-donut-chart';

const app = createApp();
app.use(Donut);

...

<template>
  <vc-donut total="35">
    Test donut
  </vc-donut>
</template>
dumptyd commented 1 year ago

What version of the library do you have installed? Vue 3 requires ^2.0.0 to work.

Make sure you follow the installation instructions from here - https://github.com/dumptyd/vue-css-donut-chart/tree/next

leoncarey commented 1 year ago

@dumptyd yes, my vue version in package.json: "vue": "^3.2.13"

leoncarey commented 1 year ago

@dumptyd I'm using 2.0.0 now and works now!