vuejs / apollo

🚀 Apollo/GraphQL integration for VueJS
http://apollo.vuejs.org
MIT License
6.03k stars 522 forks source link

Error: [vue-composition-api] already installed after upgrading @vue/composition-api #1048

Closed DarkLite1 closed 4 years ago

DarkLite1 commented 4 years ago

Describe the bug After updating the package @vue/composition-api. we're receiving the error below and the page is not rendered:

Error: [vue-composition-api] already installed.

This works fine:

// package.json
"dependencies": {
    "@vue/apollo-composable": "^4.0.0-alpha.10",
    "@vue/composition-api": "1.0.0-beta.10",

This does not:

// package.json
"dependencies": {
    "@vue/apollo-composable": "^4.0.0-alpha.10",
    "@vue/composition-api": "1.0.0-beta.11",

Quasar boot file:

import Vue from 'vue'
import VueCompositionApi from '@vue/composition-api'

Vue.use(VueCompositionApi)
DarkLite1 commented 4 years ago

Solved in another repo.