\n\n### Reproduction\n\nhttps://vueuse.org/core/useShare/\n\n### System Info\n\n```Shell\nOn Chromium 137.0.7151.104 (Official Build) (arm64)\n```\n\n### Used Package Manager\n\n\\-\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.",[3019],{"name":3020,"color":3021},"pending triage","d73a4a",4833,"BUG | `useShare` | demo in docs is broken?","2025-06-23T10:49:47Z","https://github.com/vueuse/vueuse/issues/4833",0.7103308,{"description":3028,"labels":3029,"number":3030,"owner":3009,"repository":3009,"state":3031,"title":3032,"updated_at":3033,"url":3034,"score":3035},"### Describe the bug\n\nNot reactive if you use the current lib in the module federation (https://github.com/originjs/vite-plugin-federation)\r\n\r\n\u003Cimg width=\"1544\" alt=\"Screenshot 2023-03-29 at 00 05 57\" src=\"https://user-images.githubusercontent.com/6079139/228368836-e884d189-775f-4bca-ae19-dd0479f6eeac.png\">\r\n\r\n```javascript\r\nimport { computed } from 'vue'\r\nimport { defineStore } from 'pinia'\r\nimport { useStorage } from '@vueuse/core'\r\n\r\nexport const useCounterStore = defineStore('counter', () => {\r\n const count = useStorage('count', 0) // not reactive in module federation\r\n const doubleCount = computed(() => count.value * 2)\r\n function increment() {\r\n count.value++\r\n }\r\n\r\n return { count, doubleCount, increment }\r\n})\r\n```\n\n### Reproduction\n\nhttps://github.com/AndreiSoroka/useStorage-reproduce-in-mf\n\n### System Info\n\n```Shell\nSystem:\r\n OS: macOS 12.6\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 105.80 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 18.14.0 - /usr/local/bin/node\r\n npm: 9.3.1 - /usr/local/bin/npm\r\n Browsers:\r\n Chrome: 111.0.5563.110\r\n Safari: 15.6.1\r\n```\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.",[],2916,"closed","VueUse/core useStorage not reactive in module federation","2023-03-29T17:43:32Z","https://github.com/vueuse/vueuse/issues/2916",0.6776977,{"description":3037,"labels":3038,"number":3039,"owner":3009,"repository":3010,"state":3031,"title":3040,"updated_at":3041,"url":3042,"score":3043},"Hi! \r\nim working on components lib and truing to make it vue2/3 compatible using this solution.\r\nBut i faced with issue with vue3 installation.. in vue2 env everything working fine!\r\n Here is my build webpack config: \r\n```\r\nimport merge from 'webpack-merge';\r\nimport { Configuration } from 'webpack';\r\nimport { CleanWebpackPlugin } from 'clean-webpack-plugin';\r\nimport common from './webpack.base.config';\r\nconst { watch } = require('minimist')(process.argv.slice(2));\r\n\r\nconst path = require('path');\r\n\r\n\r\nexport default merge\u003CConfiguration>(common, {\r\n entry: {\r\n main: './src/index.ts',\r\n },\r\n output: {\r\n filename: 'index.js',\r\n path: path.resolve(__dirname, 'dist'),\r\n library: {\r\n name: 'TestLib',\r\n type: 'umd',\r\n },\r\n },\r\n devtool: 'source-map',\r\n mode: watch ? 'development' : 'production',\r\n bail: watch ? false : true,\r\n plugins: [\r\n new CleanWebpackPlugin(),\r\n ],\r\n externals: {\r\n vue: 'vue',\r\n 'vue-demi': 'vue-demi',\r\n 'lodash': 'lodash',\r\n },\r\n});\r\n```\r\non client side im using default vue-cli-service serve^ without additional settings\r\nbut in vue3 environment i got:\r\n\r\n\r\nseems problem somewhere near webpack build config, maybe somebody can share some webpack config examples? \r\nThanks! \r\n\r\n",[],81,"Any webpack example? ","2021-07-28T11:23:14Z","https://github.com/vueuse/vue-demi/issues/81",0.69223905,{"description":3045,"labels":3046,"number":3047,"owner":3009,"repository":3010,"state":3031,"title":3048,"updated_at":3049,"url":3050,"score":3051},"I am using vue-cli-service to compile my library which uses vue-demi and I develop the code using vue 3.2.X.\r\nWhen I import the library in a vue2 project `vue-demi` detects vue3 is running instead of vue2.\r\n\r\nThis is a console log of following in my library, which I imported in my application.\r\n```js\r\nimport * as VueDemi from 'vue-demi';\r\nconsole.log(VueDemi)\r\n```\r\n\r\n\r\n\r\n\r\nHere's a repo to reproduce it \r\n[https://github.com/pareshchouhan/vue-demi-test](https://github.com/pareshchouhan/vue-demi-test) \r\n\r\nIn my library only thing I use vue-demi is for importing defineComponent\r\n\r\n```js\r\nimport { defineComponent } from 'vue-demi';\r\n````\r\n\r\nIt crashes inside the library code when calling `defineComponent`\r\n\r\n",[],121,"Library uses vue-demi with vue3, app uses vue2 but still vue-demi detects vue3","2021-12-02T15:13:46Z","https://github.com/vueuse/vue-demi/issues/121",0.69336116,{"description":3053,"labels":3054,"number":3055,"owner":3009,"repository":3010,"state":3031,"title":3056,"updated_at":3057,"url":3058,"score":3059},"Hello !\r\n\r\nThanks for the work on this. It's certailny an issue with typescript itself but as I am new with it I can't figure what I am doing wrong.\r\n\r\nI followed the installation step and my IDE and Rollup build don't stop to tell me that vue-demi does not export all the vue function:\r\n\r\n\r\n\r\n\r\n",[],42,"No exported member 'ref'","2021-02-26T18:07:33Z","https://github.com/vueuse/vue-demi/issues/42",0.6967048,{"description":3061,"labels":3062,"number":3063,"owner":3009,"repository":3009,"state":3031,"title":3064,"updated_at":3065,"url":3066,"score":3067},"### Describe the bug\r\n\r\nIt seems when in vue3 project, it still import vue-demi.\r\n\r\nWhen i down to 8.9.3, problem solved.\r\n\r\n```\r\n10:14:49 AM [vite] Internal server error: Failed to resolve import \"vue-demi\" from \"node_modules/.vite/deps/chunk-KBM4AKY4.js?v=49be3b31\". Does the file exist?\r\n Plugin: vite:import-analysis\r\n File: /Users/alex.xie/code/divzen-web/node_modules/.vite/deps/chunk-KBM4AKY4.js?v=49be3b31\r\n 1 | // node_modules/.pnpm/@vueuse+shared@8.9.4_vue@3.2.37/node_modules/@vueuse/shared/index.mjs\r\n 2 | import { shallowRef, watchEffect, readonly, ref, unref, isVue3, watch, customRef, effectScope, provide, inject, getCurrentScope, onScopeDispose, isRef, computed, reactive, toRefs as toRefs$1, toRef, isVue2, set as set$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive } from \"vue-demi\";\r\n | ^\r\n 3 | var __defProp$9 = Object.defineProperty;\r\n 4 | var __defProps$6 = Object.defineProperties;\r\n```\r\n\r\n### Reproduction\r\n\r\ni may put it later\r\n\r\n### System Info\r\n\r\n```Shell\r\nSystem:\r\n OS: macOS 12.4\r\n CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz\r\n Memory: 499.36 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node\r\n Yarn: 1.22.17 - ~/.yarn/bin/yarn\r\n npm: 8.5.5 - ~/.config/yarn/global/node_modules/.bin/npm\r\n Browsers:\r\n Chrome: 103.0.5060.114\r\n Firefox: 89.0\r\n Safari: 15.5\r\n npmPackages:\r\n @vueuse/core: 8.9.4 => 8.9.4 \r\n vue: ^3.2.37 => 3.2.37\r\n```\r\n\r\n\r\n### Used Package Manager\r\n\r\npnpm\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.",[],1953,"v8.9.4 will break vue3 project?","2022-07-19T05:57:43Z","https://github.com/vueuse/vueuse/issues/1953",0.70002854,{"description":3069,"labels":3070,"number":3071,"owner":3009,"repository":3009,"state":3031,"title":3072,"updated_at":3073,"url":3074,"score":3075},"Not sure is a good ideea to have vue-demi as dependency as any version.\r\n\r\nThey did a release and now:\r\n\r\n",[],624,"Vue-demi import error","2021-07-16T17:48:37Z","https://github.com/vueuse/vueuse/issues/624",0.7026056,{"description":3077,"labels":3078,"number":3079,"owner":3009,"repository":3009,"state":3031,"title":3080,"updated_at":3081,"url":3082,"score":3083},"### Describe the bug\r\n\r\n\r\n\r\nchange\r\n\r\nimport { and } from '@vueuse/core';\r\n\r\n### Reproduction\r\n\r\n-\r\n\r\n### System Info\r\n\r\n```Shell\r\n v 7.4.1\r\n```\r\n\r\n\r\n### Used Package Manager\r\n\r\nyarn\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.",[],1470,"Module '\"@vueuse/core\"' has no exported member 'logicAnd'","2022-03-30T18:53:12Z","https://github.com/vueuse/vueuse/issues/1470",0.705289,{"description":3085,"labels":3086,"number":3087,"owner":3009,"repository":3009,"state":3031,"title":3088,"updated_at":3089,"url":3090,"score":3091},"### Describe the bug\r\n\r\n```ts\r\nimport { extendRef } from '@vueuse/core'\r\nimport { toRef, ref } from 'vue'\r\nconst loading = ref(false)\r\nconst value= ref([])\r\nconst extendValue = extendRef(value, { loading })\r\nconst toLoading = toRef(extendValue, 'loading')\r\ntoLoading.value // []\r\n```\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/vitejs-vite-4xxdjs/?file=src%2FApp.vue\r\n\r\n### System Info\r\n\r\n```Shell\r\nSystem:\r\n OS: Windows 10 10.0.19044\r\n CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz \r\n Memory: 1.33 GB / 15.90 GB\r\n Binaries:\r\n Node: 16.15.0 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.18 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 8.5.5 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (108.0.1462.76)\r\n Internet Explorer: 11.0.19041.1566\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.",[],3093,"extendRef and vue@3.3.2 use toRef value is incorrect","2023-05-17T07:55:28Z","https://github.com/vueuse/vueuse/issues/3093",0.7077728,["Reactive",3093],{},["Set"],["ShallowReactive",3096],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fvUIu9duhQxOgQdJcN17fT-pzO9b_L9bpbPsxSw2vnfs":-1},"/vueuse/vue-demi/130"]