\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vitejs-vite-m1bs1kix?file=src%2FApp.vue\n\n### System Info\n\n```Shell\nSystem:\n OS: Windows 11 10.0.22631\n CPU: (16) x64 AMD Ryzen 7 8845HS w/ Radeon 780M Graphics\n Memory: 12.32 GB / 31.31 GB\nBinaries:\n Node: 22.15.1 - D:\\Program Files\\nodejs\\node.EXE\n npm: 10.9.2 - D:\\Program Files\\nodejs\\npm.CMD\n pnpm: 10.12.2 - D:\\Program Files\\nodejs\\pnpm.CMD\nBrowsers:\n Edge: Chromium (127.0.2651.98)\n Internet Explorer: 11.0.22621.3527\nnpmPackages:\n @vueuse/core: ^13.4.0 => 13.4.0\n vue: v3.6.0-alpha.1 => 3.6.0-alpha.1\n```\n\n### Used Package Manager\n\npnpm\n\n### Validations\n\n- [x] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\n- [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\n- [x] Read the [docs](https://vueuse.org/guide).\n- [x] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\n- [x] Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.\n- [x] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\n- [x] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[3211,3214],{"name":3212,"color":3213},"bug","d73a4a",{"name":3215,"color":3216},"vue: vapor","929648",4875,"BUG | `provideLocal` and `injectLocal` | In Vue's vapor mode, `getCurrentInstance` returns `null`","2025-09-20T21:27:27Z","https://github.com/vueuse/vueuse/issues/4875",0.6804375,{"description":3223,"labels":3224,"number":3225,"owner":3173,"repository":3174,"state":3203,"title":3226,"updated_at":3227,"url":3228,"score":3229},"\r\n\r\n\r\nWhen using in Vue 2.6, the hasInjectionContext method will be executed. At this point, the default method exposed by VueCompositionAPI is only install. You need to selectively import getCurrentInstance.",[],231,"Vue 2.6: Error \"VueCompositionAPI.getCurrentInstance is not a function\" in hasInjectionContext()","2023-05-18T10:21:16Z","https://github.com/vueuse/vue-demi/issues/231",0.68459356,{"description":3231,"labels":3232,"number":3233,"owner":3173,"repository":3173,"state":3203,"title":3234,"updated_at":3235,"url":3236,"score":3237},"get vue [Global config](https://v3.vuejs.org/api/application-config.html#globalproperties)\r\n\r\nsimple code demo:\r\n\r\n```\r\nimport { getCurrentInstance } from 'vue'\r\nexport function useGlobalConfig(key) {\r\n const vm: any = getCurrentInstance()\r\n if (key in vm.proxy) {\r\n return vm.proxy.key\r\n }\r\n return {}\r\n}\r\n```",[],261,"add useGlobalConfig suggestion","2020-12-22T06:48:04Z","https://github.com/vueuse/vueuse/issues/261",0.69051856,{"description":3239,"labels":3240,"number":3241,"owner":3173,"repository":3173,"state":3203,"title":3242,"updated_at":3243,"url":3244,"score":3245},"I get errors like\r\n\r\n```\r\nERROR in node_modules/@vueuse/core/index.d.ts(1,21):\r\n1:21 Cannot find module '@vue/composition-api/dist/reactivity/ref' or its corresponding type declarations.\r\n > 1 | import { Ref } from '@vue/composition-api/dist/reactivity/ref';\r\n```\r\n\r\nSame code works with composition-api v0.6.1",[],88,"Types seems to be broken with composition-api v0.6.3","2020-06-16T00:50:03Z","https://github.com/vueuse/vueuse/issues/88",0.69437915,{"description":3247,"labels":3248,"number":19,"owner":3173,"repository":3174,"state":3203,"title":3249,"updated_at":3250,"url":3251,"score":3252},"## Summary\r\n\r\nI tried using `vue-demi-switch 2 vue2` and defining `\"vue2\": \"npm:vue@2\"` in my package.json, but when I run tests, the `@vue/composition-api` breaks, because it imports Vue as `var Vue = require('vue');`\r\n\r\nDo you have any advice on how to proceed with this? I saw `vueuse/core` uses this approach but I couldnt see if you have a fix for this.\r\n\r\nYou can see this in https://github.com/vuelidate/vuelidate/tree/next",[],"Switching between Vue 2 and Vue 3 to run tests with Composition API","2022-07-06T17:23:19Z","https://github.com/vueuse/vue-demi/issues/38",0.6995052,{"description":3254,"labels":3255,"number":3256,"owner":3173,"repository":3173,"state":3203,"title":3257,"updated_at":3258,"url":3259,"score":3260},"Upgrading from @vueuse/core ^4.11.0 -> @vueuse/core ^7.3.0 results in the title error\r\n\r\n\r\n\r\n\r\nRunning \r\n`npx vue-demi-fix` or `npx vue-demi-switch 2`\r\nDoes not fix the issue.\r\n\r\nApplication is running\u003Cbr/>\r\n`\"vue\":\"^2.6.14\"`\r\n`\"@vue/composition-api\":\"^1.4.1\"`\r\n\r\nCan anyone advise?\r\n\r\nMy only resolution atm is to downgrade and duplicate vueUse functionality intending for use.\r\n",[],1070,"Vue2 + Vue composition-api: Error in data(): \"TypeError: vueDemi.getCurrentScope is not a function\"","2022-09-21T19:28:08Z","https://github.com/vueuse/vueuse/issues/1070",0.70483404,["Reactive",3262],{},["Set"],["ShallowReactive",3265],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fmiqG7lltiV_UYAd8rFj8WRtYQnFNTfVSUir0-t5HSuw":-1},"/vueuse/vue-demi/23"]