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 during build with Vitejs #16

Open michael-picard opened 3 years ago

michael-picard commented 3 years ago

Hello there,

I'm moving a Vue3 project from vue-cli to vite build tool. I'm extending the Pie chart in one of my components using import {Pie} from "vue3-chart-v2". Though everything works fine during development, the "vite build" command (which uses Rollup) fails with the following error :

error during build:
Error: 'Pie' is not exported by node_modules/vue3-chart-v2/src/components/BaseChart.vue, imported by node_modules/vue3-chart-v2/index.js

Thanks ! Michael