\r\nimport { defineConfig } from 'vite'\r\nimport vue from '@vitejs/plugin-vue'\r\nimport vueI18n from '@intlify/vite-plugin-vue-i18n'\r\n\r\n// https://vitejs.dev/config/\r\nconst path = require(\"path\")\r\nexport default defineConfig({\r\n test: {\r\n setupFiles: ['./tests/config.ts']\r\n },\r\n optimizeDeps: {\r\n exclude: ['vue-demi']\r\n },\r\n build: {\r\n lib: {\r\n entry: path.resolve(__dirname, 'src/install.ts'),\r\n name: 'vcp',\r\n formats: ['umd'],\r\n fileName: (format) => `vcp.${format}.ts`\r\n },\r\n rollupOptions: {\r\n external: ['vue', 'vueI18n', 'vue-demi',],\r\n output: {\r\n exports: 'named',\r\n globals: {\r\n 'vue-demi': 'VueDemi',\r\n 'vue': 'Vue',\r\n }\r\n }\r\n },\r\n },\r\n plugins: [\r\n vue({\r\n style: true,\r\n css: true\r\n }),\r\n vueI18n({\r\n include: path.resolve(__dirname, 'src/assets/translations.ts'),\r\n globalSFCScope: true,\r\n compositionOnly: false,\r\n }),\r\n ],\r\n server: {\r\n port: 8080\r\n },\r\n resolve: {\r\n dedupe: ['vue'],\r\n alias: {\r\n \"~\": path.resolve(__dirname, \"./src\"),\r\n \"@\": path.resolve(__dirname, \"./src\"),\r\n },\r\n },\r\n})\r\n\r\n```\r\n\r\npackage.json:\r\n```\r\n{\r\n \"name\": \"vcp\",\r\n \"version\": \"0.9.14\",\r\n \"private\": false,\r\n \"author\": \"Alireza Safari \u003Calireza.safaree@gmail.com> (http://alireza-safari.ir)\",\r\n \"license\": \"MIT\",\r\n \"main\": \"./dist/vcp.umd.ts\",\r\n \"description\": \"Vue Client Print with Template Builder\",\r\n \"exports\": {\r\n \".\": {\r\n \"require\": \"./dist/vcp.umd.ts\"\r\n },\r\n \"./dist/style.css\": \"./dist/style.css\"\r\n },\r\n \"keywords\": [\r\n \"vcp\",\r\n \"vue print\",\r\n \"vue client print\",\r\n \"template builder\",\r\n \"vue report\",\r\n \"vue report generator\"\r\n ],\r\n \"files\": [\r\n \"dist/*\"\r\n ],\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/alireza0sfr/vue-client-print\"\r\n },\r\n \"scripts\": {\r\n \"dev\": \"vite\",\r\n \"build\": \"vite build\",\r\n \"serve\": \"vite preview\",\r\n \"test\": \"vitest run --environment jsdom\",\r\n \"test:ui:\": \"vitest --environment jsdom --ui\",\r\n \"test:coverage\": \"vitest run --coverage --environment jsdom\",\r\n \"test:watch\": \"vitest --environment jsdom\"\r\n },\r\n \"dependencies\": {\r\n \"dom-to-image\": \"^2.6.0\",\r\n \"file-saver\": \"^2.0.5\",\r\n \"jsdom\": \"^19.0.0\",\r\n \"print-js\": \"^1.6.0\",\r\n \"register-service-worker\": \"^1.7.2\",\r\n \"typescript\": \"^4.7.2\",\r\n \"vitest\": \"^0.12.9\",\r\n \"vue-demi\": \"^0.12.5\",\r\n \"vue-i18n\": \"^9.1.10\"\r\n },\r\n \"peerDependencies\": {\r\n \"vue\": \">=2.0.0 || >=3.0.0\"\r\n },\r\n \"devDependencies\": {\r\n \"@intlify/vite-plugin-vue-i18n\": \"^3.4.0\",\r\n \"@vitejs/plugin-vue\": \"^2.3.3\",\r\n \"@vitest/ui\": \"^0.12.9\",\r\n \"@vue/compiler-sfc\": \"^3.2.36\",\r\n \"@vue/test-utils\": \"^2.0.0-rc.18\",\r\n \"c8\": \"^7.11.3\",\r\n \"cz-conventional-changelog\": \"^3.0.1\",\r\n \"vite\": \"^2.9.9\",\r\n \"vue\": \"^3.2.36\"\r\n }\r\n}\r\n\r\n```",[],161,"createElementVNode is not a function vite","2022-10-27T15:14:22Z","https://github.com/vueuse/vue-demi/issues/161",0.6824544,{"description":3038,"labels":3039,"number":3043,"owner":3022,"repository":3022,"state":3024,"title":3044,"updated_at":3045,"url":3046,"score":3047},"### Describe the bug\r\n\r\nWhen calling `until` on a ref of an array, _e.g._ `until(ref([]))`, the response does not include \"all the methods\". It is of type `UntilArrayInstance`.\r\n\r\nBut when I use `until` on a ref that may be `undefined`, something weird is happing. In any cases, the return type is `UntilValueInstance`, but at *runtime*:\r\n1) If the ref is initialized with undefined, _e.g._ `until(ref\u003Cstring[]>())`, then the returned value corresponds to the type as expected\r\n2) If the ref is initialized with any array, _e.g._ `until(ref\u003Cstring[]>([]))` then the returned value corresponsed to `UntilArrayInstance` interface\r\n\r\nIs it by design ? This makes really difficult to rely on TS to handle the different possible cases. (It is possible that I have a computed which initial value is not known at the setup of the component, because coming from a store or things like that).\r\n\r\nFor instance, my code was throwing because I was relying on the inferred return type `UntilValueInstance` but the runtime returned object did not include the desired methods.\r\n\r\n\r\n### Reproduction\r\n\r\n[reproduction link](https://play.vueuse.org/#N4IgDghgxg1hDmBTAziAXAbVAOwgW0XRADcBXRAWgBNE8BLEAGhGQHtSAnKQtEU7MDHhMQNZFA50wAFzqtsRAGrkABABFadFQAoAFhAA2AMxV1sKgGIdE2KLoCUp5CogqaxRAdZgz8FaVkDOmkATxcDLwB3ZxD2FWlWFUjJaUQVAFVsOg8OZEMVZTSAGToAIw4ISRQVI1YOAtUAJhUAMhUAZhFOAyJdaWkwZDQAemH+QXgAOihWPGGyShp6YaDS4bMaAA9JvAArVABfRhx8HhAAAQXSZERh5H1rKhE2Tm4icaERMQkpWXkiADKD0QVAaiHSN38gWCdBQky6HB6vD6AyGow+Uxmc0u5Gut3ulRB5wAjAAGSbEyak9bYLY7fYgI4nAhEHGIPHDGbWZ7sLhnDFfFA-GRyBS8ADCrAiiCgf3MrBMKBu2Fk+UKKkleDArGQMPkGWhshQCKRIBRgxGYwEQmms2GbI5XMQJPJlOpG0Q2z2hwAuswjHQDMa0KAAIJgMCTBboUCpLUGCCpIjPYXSIh0LV1aQqYD+FWBlQHGocWYqADkDpunLqiDLAB0spmONnc1iwAEQYXi6WywsywBuBsN0YuZDIUgEeL6bPSXRpMww-LEQyqAAGGB9q5UWOqRhLeBcKmQCWsKlKAW3EGw2FY2dKaRgN8i5ivoJmpAMoPveZoAewIIbGZsGPFRlwMFQAF5t1mdtUiobRtEcCCAD4VA3ewh1wZAQlsGp+FlUV4hQaREJzBsVBcSIIGCPNAm0MD7EmG9pEmBIACFwVpRA-xBRDB2wA5MNSY8+MZZhJTqKgzETRAo3IGMQDjMAEyTXgAB4pOIciankaQILrEA8HkVgDO00p4H0kAgngPoKAAVlJUk3EqGA0CoFz7Mc0zzBqINNksgA-aCDG8ijUk2PSDO4FVEA4UKVDASzGni0pJNiyyS34GgqG85DtLU5BIHMcLIpAAAWTYQpAZDgFzMDVAOA41LuIq8p8gqiqIiLLOQA93I4VzrNsgBORznIGtBvGgYIQk8gyVDwSzpAoZLqoAWXYSFapUBN73AxrmsKq82uazTkJTSQZCIX8zEQAAFEtBm0YBtN2zw0BUAFpEkbB4EYbT6sQD6ADkJ3vDh-oE+xGUaoA)\r\n\r\n### System Info\r\n\r\n```Shell\r\nSystem:\r\n OS: macOS 14.1.1\r\n CPU: (11) arm64 Apple M3 Pro\r\n Memory: 154.41 MB / 36.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node\r\n Yarn: 3.6.3 - ~/.nvm/versions/node/v18.18.2/bin/yarn\r\n npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm\r\n Browsers:\r\n Chrome: 119.0.6045.123\r\n Safari: 17.1\r\n npmPackages:\r\n @vueuse/core: ^10.7.2 => 10.7.2\r\n vue: ^2.7.15 => 2.7.14\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.",[3040],{"name":3041,"color":3042},"enhancement","a2eeef",3740,"Missing methods on `until` called on a maybe undefined array ref whilst listed by TS","2025-02-28T16:13:22Z","https://github.com/vueuse/vueuse/issues/3740",0.69160336,{"description":3049,"labels":3050,"number":3051,"owner":3022,"repository":3022,"state":3024,"title":3052,"updated_at":3053,"url":3054,"score":3055},"### Describe the bug\n\nLastly I tried to implement swipe gesture from example provided by the maintainer of Radix-Vue in my application and I had notice a weird behavior. [PR with swiping](https://github.com/unovue/radix-vue/pull/1467#issuecomment-2546369503)\r\n\r\nIt's like when you open devtools and emulating a mobile device and trying to use of the vueuse composable it doesn't work at all. What I mean, while you click in a device space and to try to reach out swipe action after moving the mouse past the edge of pointer boundaries, pointer lost focus and it's only occurs on chromium based browsers. I've checked it on Firefox for Devs, on Arc and on Safari. I didn't notice that issue on Firefox and Safari. Only on Chrome and Arc\r\n\r\nI discovered it because I forked whole usePointerSwipe composable into my app and debugging code. And only one thing which was interfering the action of the vueuse composable was pointer event itself, I changed it into mouse and touch events and they work fine.\r\n\r\nThere is the code block - I pass it in regular web pages and I notice the same behavior with the same flow, opening devtools and emulating a device.\r\n\r\n```ts\r\ndocument.addEventListener('pointerup', (e) => {\r\n console.log('Global pointerup event:', e)\r\n })\r\n\r\n document.addEventListener('pointerleave', (e) => {\r\n console.log('Pointer left document area')\r\n })\r\n\r\n document.addEventListener('pointermove', (e) => {\r\n console.log(`Pointer position: x=${e.clientX}, y=${e.clientY}`)\r\n\r\n\r\n const viewportWidth = document.documentElement.clientWidth\r\n const viewportHeight = document.documentElement.clientHeight\r\n\r\n console.log(`Viewport size: ${viewportWidth}x${viewportHeight}`)\r\n })\r\n\r\n document.addEventListener('pointerleave', (e) => {\r\n console.log('Pointer left document bounds!')\r\n console.log(`Last known position: x=${e.clientX}, y=${e.clientY}`)\r\n })\r\n ```\r\n \r\nTo clarify vueuse is only provider of the composable so it isn't provide that issue. The issue is with the pointer events and emulating a device in devtools in the chrome based browsers \r\n\r\nI'm providing reproduction below and I created issue on chromium https://issues.chromium.org/u/2/issues/386172192\r\n\n\n### Reproduction\n\nhttps://github.com/czarsbenemoriendi/usePointerSwipe\n\n### System Info\n\n```Shell\nSystem:\r\n OS: macOS 14.5\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 694.25 MB / 32.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node\r\n Yarn: 1.22.19 - /opt/homebrew/bin/yarn\r\n npm: 10.7.0 - ~/.nvm/versions/node/v20.14.0/bin/npm\r\n pnpm: 9.12.3 - ~/Library/pnpm/pnpm\r\n bun: 1.1.42 - /opt/homebrew/bin/bun\r\n Browsers:\r\n Chrome: 131.0.6778.205\r\n Safari: 17.5\r\n npmPackages:\r\n @vueuse/core: ^12.0.0 => 12.2.0\r\n vue: latest => 3.5.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.",[],4437,"BUG | `usePointerSwipe` | The browser handles pointer events strangely when emulating a mobile device in the DevTools","2025-01-24T13:22:53Z","https://github.com/vueuse/vueuse/issues/4437",0.69810295,{"description":3057,"labels":3058,"number":3059,"owner":3022,"repository":3023,"state":3060,"title":3061,"updated_at":3062,"url":3063,"score":3064},"I have encountered an error when compiling a library to `cjs` format and using it with Vue2.\r\nError:\r\n```js\r\nUncaught TypeError: _vue.use is not a function\r\n at install (index.cjs.js:8)\r\n at index.cjs.js:14\r\n at chunk-4I6LKIR4.js?v=1e7b36e0:6\r\n at match-sorter.esm.js:441\r\n at chunk-4I6LKIR4.js?v=1e7b36e0:6\r\n at index.js:12\r\n at chunk-4I6LKIR4.js?v=1e7b36e0:6\r\n at dep:vue-query_devtools:1\r\n```\r\n\r\n\r\nAs seen on the screenshot Vue2 provides default export, which is only used on compositionApi currently, but not with the Vue itself.\r\n\r\nI can fix said error by changing line 5\r\nfrom : `_vue = _vue || Vue`\r\nto: `_vue = _vue.default || _vue || Vue.default || Vue`\r\n\r\nReproduction steps:\r\n- clone vue-query repo: https://github.com/DamianOsipiuk/vue-query\r\n- `npm i`\r\n- `npm pack` (npm link does not work somehow, there is a different error when using it which is not connected)\r\n- `cd examples/basic-vue-2.x/`\r\n- `npm i`\r\n- extract result of `npm pack` to example node_modules\r\n- `npm run dev`\r\n\r\nAm I missing some configuration part, or is it a real issue?\r\nI can provide a PR if necessary with the mentioned fix.",[],62,"closed","TypeError when trying to use vue-demi with vue2 and cjs","2021-05-05T23:37:21Z","https://github.com/vueuse/vue-demi/issues/62",0.6723078,{"description":3066,"labels":3067,"number":3068,"owner":3022,"repository":3023,"state":3060,"title":3069,"updated_at":3070,"url":3071,"score":3072},"I'm trying to set up a component library with vue-demi (Vite + Vue 3 + Setup Script). Importing thing work fine in Vue 3 apps, but fail for Vue 2. The resulting bundle looks like this:\r\n\r\nBaseButton.vue to be imported by Vue2/3 App\r\n```vue\r\n\u003Cscript setup lang=\"ts\">\r\nimport { ref } from \"vue-demi\";\r\n\r\ndefineProps({\r\n label: {\r\n type: String,\r\n default: \"\",\r\n },\r\n});\r\n\r\nconst counter = ref(0);\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n \u003Clabel>\r\n {{ label }}\r\n {{ counter }}\r\n \u003Cbutton v-bind=\"$attrs\" @click=\"counter++\">\r\n \u003Cslot />\r\n \u003C/button>\r\n \u003C/label>\r\n\u003C/template>\r\n```\r\n\r\nBuild output:\r\n```js\r\nimport { defineComponent, ref, openBlock, createElementBlock, createTextVNode, toDisplayString, createElementVNode, mergeProps, renderSlot } from \"vue\";\r\nconst _sfc_main = /* @__PURE__ */ defineComponent({\r\n props: {\r\n label: {\r\n type: String,\r\n default: \"\"\r\n }\r\n },\r\n setup(__props) {\r\n const counter = ref(0);\r\n return (_ctx, _cache) => {\r\n return openBlock(), createElementBlock(\"label\", null, [\r\n createTextVNode(toDisplayString(__props.label) + \" \" + toDisplayString(counter.value) + \" \", 1),\r\n createElementVNode(\"button\", mergeProps(_ctx.$attrs, {\r\n onClick: _cache[0] || (_cache[0] = ($event) => counter.value++)\r\n }), [\r\n renderSlot(_ctx.$slots, \"default\")\r\n ], 16)\r\n ]);\r\n };\r\n }\r\n});\r\nexport { _sfc_main as BaseButton };\r\n```\r\n\r\nIn Vue 2 I run into `Uncaught TypeError: Object(...) is not a function` error with `defineComponent()`. I suppose it should be importing from \"vue-demi\" instead of \"vue\"?\r\n\r\nPackage.json\r\n```json\r\n\"dependencies\": {\r\n \"vue-demi\": \"^0.12.4\"\r\n },\r\n \"devDependencies\": {\r\n \"@types/node\": \"^17.0.21\",\r\n \"@vitejs/plugin-vue\": \"^2.2.0\",\r\n \"@vue/composition-api\": \"^1.4.9\",\r\n \"typescript\": \"^4.5.4\",\r\n \"vite\": \"^2.8.0\",\r\n \"vue\": \"^3.2.25\",\r\n \"vue-tsc\": \"^0.29.8\"\r\n },\r\n \"peerDependencies\": {\r\n \"@vue/composition-api\": \"^1.0.0-rc.1\",\r\n \"vue\": \"^2.0.0 || >=3.0.0\"\r\n },\r\n \"peerDependenciesMeta\": {\r\n \"@vue/composition-api\": {\r\n \"optional\": true\r\n }\r\n },\r\n```\r\n\r\nvite.config.ts\r\n```ts\r\nexport default defineConfig({\r\n plugins: [vue()],\r\n build: {\r\n lib: {\r\n entry: path.resolve(__dirname, \"src/lib.ts\"),\r\n name: \"myLib\",\r\n fileName: (format) => `lib.${format}.js`,\r\n },\r\n rollupOptions: {\r\n // make sure to externalize deps that shouldn't be bundled\r\n // into your library\r\n external: [\"vue\"],\r\n output: {\r\n // Provide global variables to use in the UMD build\r\n // for externalized deps\r\n globals: {\r\n vue: \"Vue\",\r\n },\r\n },\r\n },\r\n },\r\n optimizeDeps: {\r\n exclude: [\"vue-demi\"],\r\n },\r\n});\r\n```",[],145,"Not running on Vue 2 App","2022-09-04T15:48:05Z","https://github.com/vueuse/vue-demi/issues/145",0.680284,{"description":3074,"labels":3075,"number":3076,"owner":3022,"repository":3022,"state":3060,"title":3077,"updated_at":3078,"url":3079,"score":3080},"### Describe the bug\r\n\r\nWhen using `useFocusWithin`, it will not take into account whether the document has focus or not, unlike :focus-within it tries to emulate.\r\n\r\nThis can be observed on vueuse's website; focusing an input on the demo page and moving focus out of the browser will cause the style to change, but the form will still be considered focused by vueuse.\r\n\r\n### Reproduction\r\n\r\nhttps://vueuse.org/core/useFocusWithin/\r\n\r\n### System Info\r\n\r\n```Shell\r\nSystem:\r\n OS: Linux 6.9 Arch Linux\r\n CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz\r\n Memory: 2.20 GB / 15.58 GB\r\n Container: Yes\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 22.1.0 - ~/.nvm/versions/node/v22.1.0/bin/node\r\n Yarn: 1.22.22 - /bin/yarn\r\n npm: 10.7.0 - ~/.nvm/versions/node/v22.1.0/bin/npm\r\n pnpm: 9.4.0 - ~/files/projects/radix-vue/radix-vue/node_modules/.bin/pnpm\r\n bun: 1.1.10 - /bin/bun\r\n Browsers:\r\n Chromium: 125.0.6422.112\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.",[],4083,"useFocusWithin doesn't respond to document.hasFocus()","2024-12-19T03:23:00Z","https://github.com/vueuse/vueuse/issues/4083",0.6863593,{"description":3082,"labels":3083,"number":3084,"owner":3022,"repository":3022,"state":3060,"title":3085,"updated_at":3086,"url":3087,"score":3088},"### Describe the bug\n\n在正常的页面跳转中没有问题,但是一旦刷新页面就会报错,重复刷新两三次又能恢复正常一次\n\n### Reproduction\n\n无\n\n### System Info\n\n```Shell\n[Vue warn]: A plugin must either be a function or an object with an \"install\" function.\r\n[Vue Router warn]: uncaught error during route navigation:\r\nError [ERR_MODULE_NOT_FOUND]: Cannot find package 'vue-demi' imported from /root/mqingmo/server/node_modules/@vueuse/integrations/useQRCode.mjs\r\n at new NodeError (node:internal/errors:387:5)\r\n at packageResolve (node:internal/modules/esm/resolve:852:9)\r\n at moduleResolve (node:internal/modules/esm/resolve:901:20)\r\n at defaultResolve (node:internal/modules/esm/resolve:1115:11)\r\n at nextResolve (node:internal/modules/esm/loader:163:28)\r\n at ESMLoader.resolve (node:internal/modules/esm/loader:837:30)\r\n at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)\r\n at ModuleWrap.\u003Canonymous> (node:internal/modules/esm/module_job:76:40)\r\n at link (node:internal/modules/esm/module_job:75:36) {\r\n code: 'ERR_MODULE_NOT_FOUND'\r\n}\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.",[],3018,"nuxt3二维码在服务器上刷新页面异常","2023-06-23T10:19:09Z","https://github.com/vueuse/vueuse/issues/3018",0.69513065,{"description":3090,"labels":3091,"number":3092,"owner":3022,"repository":3022,"state":3060,"title":3093,"updated_at":3094,"url":3095,"score":3096},"### Describe the bug\n\n Object.fromEntries(Object.entries(toRefs(obj)).filter(([k, v]) => !predicate(toValue(v) as T[K], k as K)))\r\n应该是\r\n Object.fromEntries(Object.entries(toRefs(obj)).filter(([k, v]) => !predicate(k as K,toValue(v) as T[K],)))\r\n\n\n### Reproduction\n\nhttps://github.com/vueuse/vueuse/blob/main/packages/shared/reactiveOmit/index.ts\n\n### System Info\n\n```Shell\n@vueuse/core 10.5.0\r\n\r\n Yarn: 1.22.19 - C:\\Program Files\\nodejs\\yarn.CMD\r\n npm: 10.1.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 8.10.0 - C:\\Program Files\\nodejs\\pnpm.CMD\r\n Browsers:\r\n Chrome: 118.0.5993.118\r\n Edge: Chromium (118.0.2088.76)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n @vueuse/core: ^10.5.0 => 10.5.0\r\n @vueuse/motion: ^2.0.0 => 2.0.0\r\n vue: ^3.3.4 => 3.3.4\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.",[],3518,"reactiveOmit第二个参数为函数时,key和value传值反了,和官网顺序不一致","2023-11-09T14:40:23Z","https://github.com/vueuse/vueuse/issues/3518",0.69696236,{"description":3098,"labels":3099,"number":3100,"owner":3022,"repository":3022,"state":3060,"title":3101,"updated_at":3102,"url":3103,"score":3104},"### Describe the bug\n\nnode_modules/@vueuse/shared/index.d.ts:398:119 - error TS1128: Declaration or statement expected.\r\n\r\n398 declare function makeDestructurable\u003CT extends Record\u003Cstring, unknown>, const A extends readonly any[]>(obj: T, arr: A): T & A;\r\n ~\r\nFound 10 errors in the same file, starting at: node_modules/@vueuse/shared/index.d.ts:398\n\n### Reproduction\n\nnew version\n\n### System Info\n\n```Shell\nSystem:\r\n OS: macOS 14.2.1\r\n CPU: (11) arm64 Apple M3 Pro\r\n Memory: 96.42 MB / 18.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node\r\n Yarn: 1.22.21 - ~/.nvm/versions/node/v18.19.0/bin/yarn\r\n npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm\r\n pnpm: 8.15.4 - ~/.nvm/versions/node/v18.19.0/bin/pnpm\r\n bun: 1.1.6 - ~/.bun/bin/bun\r\n Browsers:\r\n Chrome: 125.0.6422.113\r\n Safari: 17.2.1\r\n npmPackages:\r\n @vueuse/core: ^10.10.0 => 10.10.0 \r\n vue: ^3.4.27 => 3.4.27\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.",[],4006,"The project packaging will report this TypeScript error.","2024-06-11T13:29:52Z","https://github.com/vueuse/vueuse/issues/4006",0.6980267,["Reactive",3106],{},["Set"],["ShallowReactive",3109],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fHhxTyUnN1-lXOEc8KKE5lT_uuJSwssw1OlUO_smsqpA":-1},"/vueuse/vue-demi/80"]