\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.67608446,{"description":2889,"labels":2890,"number":2891,"owner":2857,"repository":2858,"state":2868,"title":2892,"updated_at":2893,"url":2894,"score":2895},"unfortunately, the issue reported in https://github.com/vueuse/vue-demi/issues/224 still exists in vue-demi 0.14.3 / pinia 2.1.1.\r\n\r\nMy previous example only used the iife version of vue-demi, but another error breaks pinia in the cjs and mjs versions of vue-demi.\r\n\r\ncodesandbox with Pinia 2.0.33 (working):\r\nhttps://codesandbox.io/s/pinia-2-0-33-vue-2-7-14-7tom1g\r\ncodesandboxwith Pinia 2.1.1 (broken):\r\nhttps://codesandbox.io/s/pinia-2-1-1-vue-2-7-14-c0gdvx\r\n\r\nI hope, this helps :)",[],228,"Vue 2.7: Error \"VueCompositionAPI is not defined\" in hasInjectionContext() still exists in vue-demi 0.14.3","2023-05-18T06:14:54Z","https://github.com/vueuse/vue-demi/issues/228",0.68619,{"description":2897,"labels":2898,"number":2899,"owner":2857,"repository":2858,"state":2868,"title":2900,"updated_at":2901,"url":2902,"score":2903},"For some reason, Vuelidate's `useVuelidate()` function crashes on `vue-demi`'s `getCurrentInstance()`, but only in Codesandbox (with Vue 2 only) and StackBlitz (any version of Vue).\r\n\r\nI initially opened a [Vuelidate issue](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canplaythrough_event), but they [punted to `vue-demi`](https://github.com/vuelidate/vuelidate/issues/877#issuecomment-859998691).\r\n\r\n---\r\n\r\nFollowing the [guide for using Vuelidate with Composition API](https://vuelidate-next.netlify.app/#alternative-syntax-composition-api), I'm seeing an error when `useVuelidate()` is called:\r\n\r\n```\r\nindex.js:27 TypeError: (0 , $csb__vuedemi.getCurrentInstance) is not a function\r\n```\r\n\r\nThis seems to occur only in Codesandbox or StackBlitz. Running the same code in a Vue CLI scaffolded project works fine.\r\n\r\n\u003Cdetails>\r\n\u003Csummary>Stack trace\u003C/summary>\r\n\u003Cpre>\r\nindex.js:27 TypeError: (0 , $csb__vuedemi.getCurrentInstance) is not a function\r\n at useVuelidate (index.esm.js:580)\r\n at setup (App.vue:32)\r\n at mergedSetupFn (vue-composition-api.esm.js:1957)\r\n at eval (vue-composition-api.esm.js:1770)\r\n at activateCurrentInstance (vue-composition-api.esm.js:1708)\r\n at initSetup (vue-composition-api.esm.js:1769)\r\n at VueComponent.wrappedData (vue-composition-api.esm.js:1756)\r\n at getData (vue.common.dev.js:4754)\r\n at initData (vue.common.dev.js:4711)\r\n at initState (vue.common.dev.js:4650)\r\n at VueComponent.Vue._init (vue.common.dev.js:5010)\r\n at new VueComponent (vue.common.dev.js:5157)\r\n at createComponentInstanceForVnode (vue.common.dev.js:3307)\r\n at init (vue.common.dev.js:3136)\r\n at createComponent (vue.common.dev.js:6013)\r\n at createElm (vue.common.dev.js:5960)\r\n at Vue.patch [as __patch__] (vue.common.dev.js:6549)\r\n at Vue._update (vue.common.dev.js:3957)\r\n at Vue.updateComponent (vue.common.dev.js:4078)\r\n at Watcher.get (vue.common.dev.js:4490)\r\n at new Watcher (vue.common.dev.js:4479)\r\n at mountComponent (vue.common.dev.js:4085)\r\n at Vue.$mount (vue.common.dev.js:9084)\r\n at Vue.$mount (vue.common.dev.js:11989)\r\n at evaluate (main.js? [sm]:9)\r\n at V (eval.js:42)\r\n at ee.evaluate (transpiled-module.js:699)\r\n at ge.evaluateTranspiledModule (manager.js:297)\r\n at ge.evaluateModule (manager.js:268)\r\n at compile.ts:728\r\n at c (runtime.js:45)\r\n at Generator._invoke (runtime.js:274)\r\n at Generator.forEach.t.\u003Ccomputed> [as next] (runtime.js:97)\r\n at r (asyncToGenerator.js:3)\r\n at u (asyncToGenerator.js:25)\r\n\u003C/pre>\r\n\u003C/details>\r\n\r\n**Reproduction URL**\r\nhttps://codesandbox.io/s/usevuelidate-bug-getcurrentinstance-is-not-a-function-6rx9w\r\n\r\nor\r\n\r\nhttps://stackblitz.com/edit/vuelidate-bug-demo\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Create new [Codesandbox for Vue 2](https://vue.new) (or fork [Vuelidate's official Vue 3 + Composition API Starter](https://codesandbox.io/s/vuelidate-2-composition-api-vue-3-7wf99) and switch Vue version to 2.x).\r\n2. Add dependency for `@vue/composition-api`, and install it from `main.js`:\r\n\r\n ```js\r\n import VueCompositionApi from '@vue/composition-api'\r\n Vue.use(VueCompositionApi)\r\n ```\r\n\r\n3. Open `src/App.vue`, and copy [Vuelidate guide's example code for the Composition API usage](https://vuelidate-next.netlify.app/#alternative-syntax-composition-api):\r\n\r\n ```js\r\n import { reactive, toRefs } from '@vue/composition-api'\r\n import useVuelidate from '@vuelidate/core'\r\n import { required, email } from '@vuelidate/validators'\r\n\r\n export default {\r\n setup () {\r\n const state = reactive({\r\n firstName: '',\r\n lastName: '',\r\n contact: {\r\n email: ''\r\n }\r\n })\r\n const rules = {\r\n firstName: { required }, // Matches state.firstName\r\n lastName: { required }, // Matches state.lastName\r\n contact: {\r\n email: { required, email } // Matches state.contact.email\r\n }\r\n }\r\n\r\n const v$ = useVuelidate(rules, state)\r\n\r\n return { ...toRefs(state), v$ }\r\n }\r\n }\r\n ```\r\n\r\n4. See error in browser console\r\n\r\n**Expected behavior**\r\nThe same output from [Vuelidate's official Vue 3 + Composition API Starter](https://codesandbox.io/s/vuelidate-2-composition-api-vue-3-7wf99).\r\n\r\n**Screenshots**\r\n\u003Cimg width=\"469\" alt=\"Screen Shot 2021-06-11 at 10 14 50 PM\" src=\"https://user-images.githubusercontent.com/26580/121763534-7815cd80-cb02-11eb-924e-c4402978d976.png\">\r\n\r\n\r\n**Additional context**\r\n\r\n * `vue` 2.6.14\r\n * `@vue/composition-api` 1.0.0-rc.11\r\n * `@vuelidate/core` 2.0.0-alpha.14 (also newer versions, including 2.0.0-alpha.19)\r\n * `@vuelidate/validators` 2.0.0-alpha.12 (also newer versions, including 2.0.0-alpha.17)\r\n * macOS BigSur\r\n * Chrome 91\r\n * StackBlitz (version unknown, but as of 11-Jun-2021)\r\n * CodeSandbox a566285e0\r\n",[],68,"\"getCurrentInstance is not a function\" in Codesandbox/StackBlitz","2021-07-15T17:21:06Z","https://github.com/vueuse/vue-demi/issues/68",0.688813,{"description":2905,"labels":2906,"number":2907,"owner":2857,"repository":2858,"state":2868,"title":2908,"updated_at":2909,"url":2910,"score":2911},"https://github.com/vueuse/vue-demi/blob/2f80cd77a9d1c5f5c825cec2922bcdddabd02fc3/lib/v2/index.mjs#L7\r\nShould't it be?\r\n\r\n```Javascript\r\n_vue.use(VueCompositionAPI)\r\n```\r\n\r\nOtherwise vue-demi is always installing the composition api in the same vue instance.",[],184,"Vue instance provided to install() function is being ignored","2022-08-10T15:35:12Z","https://github.com/vueuse/vue-demi/issues/184",0.69049644,{"description":2913,"labels":2914,"number":2915,"owner":2857,"repository":2857,"state":2868,"title":2916,"updated_at":2917,"url":2918,"score":2919},"Is anyone else unable to use `@vueuse/core ^5.1.4` with the [latest release](https://github.com/vuejs/composition-api/releases/tag/v1.0.3) of `@vue/composition-api`? Downgrading to `1.0.2` temporarily solves the issue.\r\n\r\nError message:\r\n\r\n```\r\n[vue-composition-api] must call Vue.use(VueCompositionAPI) before using any function.\r\n```\r\n\r\nIt only affects components that are using `@vueuse/core` functions",[],640,"Issue with @vue/composition-api v1.0.3","2021-07-23T07:08:57Z","https://github.com/vueuse/vueuse/issues/640",0.6927,{"description":2921,"labels":2922,"number":2923,"owner":2857,"repository":2857,"state":2868,"title":2924,"updated_at":2925,"url":2926,"score":2927},"\"@vue/composition-api\": \"^1.2.1\",\r\n\"@vueuse/core\": \"^6.4.1\",\r\n\r\n\r\n\r\n当使用了vueuse中的某个方法,如useTitle,就会报如上的错误",[],784,"与composition-api冲突","2021-10-09T05:31:50Z","https://github.com/vueuse/vueuse/issues/784",0.69760615,{"description":2929,"labels":2930,"number":2934,"owner":2857,"repository":2857,"state":2868,"title":2935,"updated_at":2936,"url":2937,"score":2938},"### Clear and concise description of the problem\n\n`@vue/composition-api` has a limitation that prevents `extendRef()` to be used but this is not the case for Vue 2.7\n\n### Suggested solution\n\nI think vue-demi could expose a variable `isNativeCompositionAPI` or similar.\r\n\r\nEven without that, using `import { version } from 'vue'` should work in most cases to check if it's vue >= 2.7 and allow using `extendRef()`.\n\n### Alternative\n\n_No response_\n\n### Additional context\n\n- https://github.com/vueuse/vueuse/issues/280\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 that request the same feature to avoid creating a duplicate.",[2931],{"name":2932,"color":2933},"enhancement","a2eeef",2340,"Support `extendRef()` with Vue 2.7","2022-12-19T17:18:32Z","https://github.com/vueuse/vueuse/issues/2340",0.6977821,["Reactive",2940],{},["Set"],["ShallowReactive",2943],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f_-5yLmEwCra7qcAJR7BRivjMgKVuZhGh_y96t66JGJw":-1},"/vueuse/vue-demi/231"]