-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Error: Must call Vue.use(VueCompositionAPI) before using any function #186
Comments
Probably a regression of nuxt/framework#1849 |
If you are using VueUse, please upgrade to 6.9.1 and install the If you can't upgrade for you, here is the manual setup: export default {
vite: {
optimizeDeps: {
exclude: [
'@vueuse/core',
'@vueuse/shared',
],
},
}
} /cc @pi0 I guess Vite's |
Linked reproduction seems not using |
It probably affects any libraries that rely on either |
Thanks for the quick fix! The error is now indeed gone. However, now I encounter another issue. Namely, the the vue runtime (vue.runtime.esm.js) is appearently present twice. Once from (Maybe its better to open a new issue for this?) |
Environment
Windows_NT
v17.0.1
2.16.0-27273615.ab1c6cb4
yarn@1.22.15
Webpack
target
,bridge
,vite
,alias
,nitro
,ssr
,head
,css
,plugins
,components
,tailwindcss
,buildModules
,modules
,serverMiddleware
,watch
,privateRuntimeConfig
,build
,storybook
-
@nuxtjs/tailwindcss@4.2.1
,portal-vue/nuxt
,@nuxt/postcss8@1.1.3
,@pinia/nuxt@0.1.0
,nuxt-route-meta@2.3.2
,@nuxt/bridge@3.0.0-27282980.f011a60
Reproduction
JabRef/JabRefOnline#480
Describe the bug
After upgrading 3.0.0-27276275.abfbd2f > 3.0.0-27282980.f011a60 I get the following error in the browser console:
Error: [vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function.
assert vue-composition-api.mjs:34
getVueConstructor vue-composition-api.mjs:315
isComponentInstance vue-composition-api.mjs:448
setupAccessControl vue-composition-api.mjs:672
reactive vue-composition-api.mjs:880
ref2 vue-composition-api.mjs:555
useQueryImpl useQuery.ts:147
useQuery useQuery.ts:132
setup SideBar.vue:146
mergedSetupFn vue-composition-api.mjs:2106
initSetup vue-composition-api.mjs:1918
activateCurrentInstance vue-composition-api.mjs:1833
initSetup vue-composition-api.mjs:1916
wrappedData vue-composition-api.mjs:1899
VueJS 36
NuxtJS 3
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: