Composition-api: [vue-composition-api] already installed. Vue.use(VueCompositionAPI) should be called only once.

Created on 17 Sep 2020  路  8Comments  路  Source: nuxt-community/composition-api

馃悰 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.

2020-09-17_7-44-06

bug

Most helpful comment

@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.

All 8 comments

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MartinMalinda picture MartinMalinda  路  7Comments

yeefun picture yeefun  路  7Comments

namadnuno picture namadnuno  路  4Comments

Quineone picture Quineone  路  4Comments

lennartzellmer picture lennartzellmer  路  3Comments