\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.6906357,{"description":2881,"labels":2882,"number":2883,"owner":2857,"repository":2857,"state":2867,"title":2884,"updated_at":2885,"url":2886,"score":2887},"\r\n \r\nI don't know why this is happening.\r\n\r\nI use vueuse in vue2.6.11 with vue-composition-api\r\n",[],809,"Bug: Error in data(): \"TypeError: vueDemi.getCurrentScope is not a function\"","2021-09-30T02:19:33Z","https://github.com/vueuse/vueuse/issues/809",0.69552237,{"description":2889,"labels":2890,"number":2891,"owner":2857,"repository":2858,"state":2867,"title":2892,"updated_at":2893,"url":2894,"score":2895},"\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.70106447,{"description":2897,"labels":2898,"number":2899,"owner":2857,"repository":2857,"state":2867,"title":2900,"updated_at":2901,"url":2902,"score":2903},"I've created a project with vite+vue2(using plugin)+vueuse and it looks like vueuse doesn't work properly in this setup.\r\n\r\nThe error I get:\r\n\r\n```\r\nvue.runtime.esm.js:619 [Vue warn]: Error in data(): \"ReferenceError: ref3 is not defined\"\r\n\r\nfound in\r\n\r\n---> \u003CAnonymous>\r\n \u003CRoot>\r\nwarn @ vue.runtime.esm.js:619\r\nvue.runtime.esm.js:1888 ReferenceError: ref3 is not defined\r\n at Object.ref (index.esm.js:1)\r\n at useCounter (index.esm.js:698)\r\n at setup (App.vue:21)\r\n at mergedSetupFn (vue-composition-api.esm.js:1741)\r\n at vue-composition-api.esm.js:1527\r\n at activateCurrentInstance (vue-composition-api.esm.js:1454)\r\n at initSetup (vue-composition-api.esm.js:1525)\r\n at VueComponent.wrappedData (vue-composition-api.esm.js:1509)\r\n at getData (vue.runtime.esm.js:4748)\r\n at initData (vue.runtime.esm.js:4705)\r\n```\r\n\r\nI tried `useCounter` and `useStorage`, but I think it can be replicated with other methods.\r\n\r\nHere is the project link to replicate: \r\nhttps://github.com/localhost5001/vite-vue2-vueuse-template",[],485,"Incompatible with vite and vue2","2021-05-05T20:52:10Z","https://github.com/vueuse/vueuse/issues/485",0.70178795,{"description":2905,"labels":2906,"number":2907,"owner":2857,"repository":2858,"state":2867,"title":2908,"updated_at":2909,"url":2910,"score":2911},"问题1: 一个vue3的组件在vue3环境下打包后的 在vue3的demo中使用组件样式未生效,getCurrentInstance获得的是null\r\n` import {\r\n defineComponent,\r\n ref,\r\n Vue2,\r\n isVue2,\r\n isVue3,\r\n getCurrentInstance,\r\n createVNode,\r\n render\r\n } from 'vue-demi';\r\n // import { createVNode, render } from 'vue'; // 若使用demo环境中的vue样式是生效的\r\n import Card from './card.vue';\r\n\r\n export default defineComponent({\r\n setup(props, context) {\r\n const btnFun = () => {\r\n cardShow();\r\n };\r\n\r\n const cardShow = () => {\r\n const node = document.getElementById('game-card');\r\n if (!node) {\r\n // 在vue2环境没有问题\r\n if (isVue2) {\r\n const gameCardComponent = Vue2.extend(Card);\r\n const gameCardInstance = new gameCardComponent({\r\n propsData: {\r\n btnObj: this\r\n }\r\n }).$mount();\r\n document.body.appendChild(gameCardInstance.$el);\r\n }\r\n if (isVue3) {\r\n const instance = getCurrentInstance();\r\n console.log(instance); // 打印为null\r\n const gameCardComponent = createVNode(Card, {\r\n btnObj: instance\r\n });\r\n render(gameCardComponent, document.querySelector('body'));\r\n }\r\n }\r\n };\r\n\r\n return {\r\n button_name,\r\n btnFun\r\n };\r\n }\r\n });`\r\n\r\n问题2: 一个vue3的组件在vue2环境下使用打包后的 在vue2的demo中\r\n\r\n",[],194,"在'vue-demi'中可以导出createVNode, render, getCurrentInstance这些vue3的方法使用吗?","2022-08-30T02:36:24Z","https://github.com/vueuse/vue-demi/issues/194",0.71231025,{"description":2905,"labels":2913,"number":2914,"owner":2857,"repository":2858,"state":2867,"title":2908,"updated_at":2915,"url":2916,"score":2911},[],195,"2022-08-26T12:48:02Z","https://github.com/vueuse/vue-demi/issues/195",{"description":2918,"labels":2919,"number":2920,"owner":2857,"repository":2857,"state":2867,"title":2921,"updated_at":2922,"url":2923,"score":2924},"### Describe the bug\n\nwhen I use useIntervalFn from @vueuse/core in my vue project,but now, my IDE says \"cannot resolve symbol 'useIntervalFn'\" and it is red as on image below.\r\n\r\nAt the same time,when I check`node_modules`,it looks very strange,and It does not jump to where the function is declared.\r\n\r\n\r\nI tried to reinstall packages, nothing helped. \r\nI use `npm i @vueuse/core` to install it.\r\nApp still compiles without problems.\r\n\r\n\n\n### Reproduction\n\nnull\n\n### System Info\n\n```Shell\nIDE: WebStorm 2022,\r\nOS: Win 10,\r\n\"@vueuse/core\": \"^8.5.0\",\r\n\"vue\": \"^3.2.13\",\n```\n\n\n### Used Package Manager\n\nnpm\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.",[],1650," can not recognized useIntervalFn","2022-07-21T12:02:12Z","https://github.com/vueuse/vueuse/issues/1650",0.7201423,{"description":2926,"labels":2927,"number":2928,"owner":2857,"repository":2857,"state":2867,"title":2929,"updated_at":2930,"url":2931,"score":2932},"### Describe the bug\r\n\r\nAccording to the [documentation](https://vueuse.org/shared/usetoggle/#usage) you can import `useToggle` from `@vueuse/core`, but this does not exist, it is located under `@vueuse/shared`.\r\n\r\n\r\n\r\nBut in all the demos it imports correctly, like under [useDark](https://github.com/vueuse/vueuse/blob/main/packages/core/useDark/demo.vue#L2).\r\n\r\nIn addition, it is also incorrectly referenced in some other parts of the documentation, such as under [useDark](https://vueuse.org/core/useDark/#basic-usage).\r\n\r\nI think that is also meant here in the [issue](https://github.com/vueuse/vueuse/issues/1112).\r\n\r\n### Reproduction\r\n\r\n[Repo](https://github.com/vueuse/vueuse/tree/main/packages/core)\r\n\r\n### System Info\r\n\r\n```Shell\r\n/\r\n```\r\n\r\n\r\n### Used Package Manager\r\n\r\nnpm\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://vueuse.org/guide).\r\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.\r\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.\r\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\r\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],1323,"There is no 'useToggle' in '@vueuse/core'","2022-02-27T19:48:29Z","https://github.com/vueuse/vueuse/issues/1323",0.72057164,["Reactive",2934],{},["Set"],["ShallowReactive",2937],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fAJ_2o7NvOMS3dw_N77pVvsKVJPyt9rnA8M2jbFjWZRI":-1},"/vueuse/vue-demi/68"]