馃悰 The bug
I get the following message when i use "@vue/composition-api": "=1.0.0-beta.14" and "@nuxtjs/composition-api": "=0.12.4":
[vue-composition-api] already installed. Vue.use(VueCompositionAPI) should be called only once.

@GaborTorma This error means you have two versions of the @vue/composition-api installed. At the moment Nuxt composition API still depends on beta 13 - so you can get around this by adjusting the version to beta 13 in your package.json.
I have this issue. Even if i change the version of @vue/composition-api to beta 13
Do you have a Vue.use(VueCompositionAPI) in your own code?
Do you have a
Vue.use(VueCompositionAPI)in your own code?
No. I should ?
Nope :D
Nope :D
"dependencies": {
...
"@nuxtjs/composition-api": "^0.12.5",
"@vue/composition-api": "1.0.0-beta.14",
},
My package.json file
Try removing the node_modules folder and yarn.lock or the npm lock file. And install all deps again.
Try removing the node_modules folder and yarn.lock or the npm lock file. And install all deps again.
Nice, it works great thanks @mathe42
Most helpful comment
@GaborTorma This error means you have two versions of the
@vue/composition-apiinstalled. At the moment Nuxt composition API still depends on beta 13 - so you can get around this by adjusting the version to beta 13 in your package.json.