Vue 2 composition API issue
GijsGoudzwaard opened this issue · comments
vue-chart-3
automatically registers the composition API on
Line 26 in 22eb701
Hi! You're right I didn't though of that at all. I will update it and update the docs :)
Should be fixed on v2.0.3
! added a warning message since it's a breaking change
I'm getting this error when I'm now manually loading the composition API. I can use the composition API on other pages where there are no charts, but when I load charts I get the error: Error in data(): "Error: [vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function."
. See the console in the demo I forked from your documentation
https://codesandbox.io/s/vue-chart-3-vue-2-forked-d82mz?file=/src/main.js
Ho sorry i'm looking at it right now
@GijsGoudzwaard Looks like a bug in @vue/composition-api
. I upgraded the version to 1.4.1
and it works
https://codesandbox.io/s/vue-chart-3-vue-2-forked-e74e7?file=/src/App.vue
I will make an update to enforce this version
Got it working by updating @vue/composition-api
to 1.4.1
. Thanks for your help!
Hello,
Is there any way to remove the warning once taken in account?
Thanks
@augnustin The warning should be removed in the new version :)