-
-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function. #1036
Comments
I've got same issue, but with the quasar framework. |
@szvest I've had a similar issue with nuxt, what I did was the following:
|
Possible duplicate of #1029 |
Thanks, @dietergoetelen. These are the steps I followed:
Same issue. Nothing fixed. |
@IRlyDontKnow Maybe my answer on StackOverflow might help you. Or simply add a boot file to Quasar with this content: // ./boot/VueCompositionApi.ts
import Vue from 'vue'
import VueCompositionApi from '@vue/composition-api'
Vue.use(VueCompositionApi) Which you then load in // ./quasar.conf.js
const { configure } = require('quasar/wrappers')
module.exports = configure(function (ctx) {
return {
supportTS: {
tsCheckerConfig: { eslint: true },
},
// order is important
boot: ['i18n', 'VueCompositionApi', 'auth', 'apollo', 'router'], |
I am getting this error after updading apollo-composable to the latest version.
[vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function.
I am using VueCompositionAPI as a Nuxt plugin.
To Reproduce
1 - Upgrade from
@vue/apollo-composable
v 4.0.0-alpha.8 to v 4.0.0-alpha.10.2 - Run
npm run dev
3 - Go the browser
Versions
nuxt: 2.13.3
@nuxtjs/apollo: 4.0.1-rc.1
@vue/composition-api: v1.0.0-beta.8
The text was updated successfully, but these errors were encountered: