Closed webszy closed 2 years ago
Make sure you are on latest version of both vue-demi
and @vue/composition-api
and there are only one version installed in your node_modules
sorry to replay so late. I tried your answer,remove the @vue/composition-api
I installed, and update the vue-demi
to latest.
error still showing. you can see my repo: https://github.com/webszy/vite-vue2-project
vue.runtime.esm.js:619 [Vue warn]: Error in data(): "Error: [vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function."
@webszy Of course, you'd need to install @vue/composition-api or vue@next
@webszy Of course, you'd need to install @vue/composition-api or vue@next
好了,用中文给你说,我想弄个vue2的脚手架,目前看装不装@vue/composition-api都会有错,如果去掉vue-demi这个库就没这个问题了
disappoint for this and give up to use this package
Feel free to.
my Code on main.js this is my repo: https://github.com/webszy/vite-vue2-project
i have run the
npx vue-demi-switch 2
,and i find out install doesn't work.if i import vue-composition-api again,the error changed
my system information