` component which emits startGame_\r\n\r\nHere is the code:\r\n```\r\n\u003Ctemplate>\r\n \u003CModal @startGame=\"startGame\" />\r\n\u003C/template>\r\n\r\n\u003Cscript>\r\nimport { useSound } from '@vueuse/sound'\r\nimport bgAudio from '@/assets/audio/stranger-things.mp3'\r\n\r\nexport default {\r\n setup() {\r\n const { play } = useSound(bgAudio)\r\n\r\n const startGame = () => {\r\n /* other codes here */\r\n play()\r\n }\r\n return {\r\n startGame\r\n }\r\n }\r\n}\r\n\u003C/script>\r\n```\r\n",[],"TypeError: Cannot read properties of undefined (reading 'version')","2022-11-25T02:10:33Z","https://github.com/vueuse/sound/issues/17",0.718383,{"description":3177,"labels":3178,"number":3137,"owner":3138,"repository":3156,"state":3140,"title":3179,"updated_at":3180,"url":3181,"score":3182},"I created a new vue3 project with the package.json listed below in cli3.\r\n\r\nthen I integrated the MultiGesture.vue, but I always get an error. what could be the reason for this?\r\n\r\nis there a demo project in cli\r\n\r\n\r\n\r\n```\r\n in ./node_modules/@vueuse/motion/dist/index.mjs\r\n\r\nModule not found: Error: Can't resolve 'defu' in 'E:\\_projekte\\PRIGNITZMUSEUM_HAVELBERG\\P7_SIEDLUNGSGESCHICHTE\\vuemotion-typescript\\node_modules\\@vueuse\\motion\\dist'\r\n\r\nERROR in ./node_modules/@vueuse/motion/dist/index.mjs 11:0-24\r\nModule not found: Error: Can't resolve 'defu' in 'E:\\_projekte\\PRIGNITZMUSEUM_HAVELBERG\\P7_SIEDLUNGSGESCHICHTE\\vuemotion-typescript\\node_modules\\@vueuse\\motion\\dist'\r\n @ ./src/main.ts 6:0-46 7:61-73\r\n\r\nwebpack compiled with 1 error\r\nERROR in src/components/_VueImagePinch.vue:55:35\r\nTS7031: Binding element 'x' implicitly has an 'any' type.\r\n 53 | const motions = useMotions();\r\n 54 |\r\n > 55 | const handler = ({ movement: [x, y], dragging }) => {\r\n | ^\r\n 56 | // Check element existence\r\n 57 | if (!motions.demo) return;\r\n 58 |\r\n\r\n```\r\n\r\npackage.json\r\n```\r\n{\r\n \"name\": \"vuemotion-typescript\",\r\n \"version\": \"0.1.0\",\r\n \"private\": true,\r\n \r\n \"scripts\": {\r\n \"serve\": \"vue-cli-service serve\",\r\n \"build\": \"vue-cli-service build\",\r\n \"lint\": \"vue-cli-service lint\"\r\n },\r\n\r\n \"dependencies\": {\r\n \"@vueuse/core\": \"^11.0.1\",\r\n \"@vueuse/gesture\": \"^2.1.0\",\r\n \"@vueuse/motion\": \"^2.2.3\",\r\n \"core-js\": \"^3.8.3\",\r\n \"vue\": \"^3.2.13\",\r\n \"vue-class-component\": \"^8.0.0-0\",\r\n \"vue-router\": \"^4.0.3\",\r\n \"vuex\": \"^4.0.0\"\r\n },\r\n \r\n \"devDependencies\": {\r\n \"@typescript-eslint/eslint-plugin\": \"^5.4.0\",\r\n \"@typescript-eslint/parser\": \"^5.4.0\",\r\n \"@vue/cli-plugin-babel\": \"~5.0.0\",\r\n \"@vue/cli-plugin-eslint\": \"~5.0.0\",\r\n \"@vue/cli-plugin-router\": \"~5.0.0\",\r\n \"@vue/cli-plugin-typescript\": \"~5.0.0\",\r\n \"@vue/cli-plugin-vuex\": \"~5.0.0\",\r\n \"@vue/cli-service\": \"~5.0.0\",\r\n \"@vue/eslint-config-typescript\": \"^9.1.0\",\r\n \"eslint\": \"^7.32.0\",\r\n \"eslint-plugin-vue\": \"^8.0.3\",\r\n \"sass\": \"^1.32.7\",\r\n \"sass-loader\": \"^12.0.0\",\r\n \"typescript\": \"~4.5.5\"\r\n }\r\n}\r\n```\r\n\r\nmain.ts\r\n```\r\nimport { createApp } from 'vue'\r\nimport App from './App.vue'\r\nimport router from './router'\r\nimport store from './store'\r\n\r\nimport { GesturePlugin } from '@vueuse/gesture'\r\nimport { MotionPlugin } from '@vueuse/motion'\r\n\r\n\r\ncreateApp(App).use(store).use(router).use(GesturePlugin).use(MotionPlugin).mount('#app')\r\n```\r\n",[],"Module not found...","2024-08-19T13:15:15Z","https://github.com/vueuse/gesture/issues/32",0.7183905,{"description":3184,"labels":3185,"number":3186,"owner":3138,"repository":3139,"state":3187,"title":3188,"updated_at":3189,"url":3190,"score":3191},"I have the following compilation error when running `npm run build` in a fresh Vue app:\r\n\r\n```\r\nsrc/App.vue:21:26 - error TS7016: Could not find a declaration file for module '@vueuse/sound'. 'C:/[...redacted...]/node_modules/@vueuse/sound/dist/index.mjs' implicitly has an 'any' type.\r\n There are types at 'C:/[...redacted...]/node_modules/@vueuse/sound/dist/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@vueuse/sound' library may need to update its package.json or typings.\r\n\r\n21 import { useSound } from '@vueuse/sound';\r\n ~~~~~~~~~~~~~~~\r\n\r\n\r\nFound 1 error in src/App.vue:21\r\n\r\nERROR: \"type-check\" exited with 2.\r\n```\r\n\r\nThe error goes away if I manually delete the `exports` key in `package.json`:\r\n\r\n```json\r\n \"exports\": {\r\n \".\": {\r\n \"require\": \"./dist/index.cjs\",\r\n \"import\": \"./dist/index.mjs\"\r\n },\r\n \"./nuxt\": {\r\n \"require\": \"./dist/nuxt.cjs\",\r\n \"import\": \"./dist/nuxt.mjs\"\r\n }\r\n },\r\n```\r\n\r\nDo you have any clue to solve it?",[],42,"closed","Could not find a declaration file for module '@vueuse/sound'","2024-12-28T16:04:51Z","https://github.com/vueuse/sound/issues/42",0.63878876,{"description":3193,"labels":3194,"number":3195,"owner":3138,"repository":3138,"state":3187,"title":3196,"updated_at":3197,"url":3198,"score":3199},"### 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.6793304,{"description":3201,"labels":3202,"number":3206,"owner":3138,"repository":3138,"state":3187,"title":3207,"updated_at":3208,"url":3209,"score":3210},"The type definition file for the Vue 3 version of Vueuse attempts to import `@vue/composition-api` which causes errors at build time. I don't believe this package is needed for Vue 3 and installing it causes more errors as it depends on Vue 2\r\n\r\nRelevant Packages:\r\n```\r\n\"@vueuse/core\": \"^3.0.34\",\r\n\"core-js\": \"^3.6.4\",\r\n\"vue\": \"^3.0.0-beta.17\"\r\n```\r\n\r\nError Log:\r\n```\r\nERROR Failed to compile with 2 errors5:22:59 AM\r\n1:22:59 AM: error in /opt/build/repo/node_modules/@vueuse/core/index.d.ts\r\n1:22:59 AM: ERROR in /opt/build/repo/node_modules/@vueuse/core/index.d.ts(1,51):\r\n1:22:59 AM: 1:51 Cannot find module '@vue/composition-api' or its corresponding type declarations.\r\n1:22:59 AM: > 1 | import { Ref, WatchStopHandle, ComputedRef } from '@vue/composition-api';\r\n1:22:59 AM: | ^\r\n1:22:59 AM: 2 | import { Ref as Ref$1 } from '@vue/runtime-dom';\r\n1:22:59 AM: 3 | \r\n1:22:59 AM: 4 | declare function createGlobalState\u003CT extends object>(factory: () => T): () => T;\r\n1:22:59 AM: error in /opt/build/repo/node_modules/@vueuse/core/index.d.ts\r\n1:22:59 AM: ERROR in /opt/build/repo/node_modules/@vueuse/core/index.d.ts(7,23):\r\n1:22:59 AM: 7:23 Cannot find module '@vue/composition-api' or its corresponding type declarations.\r\n1:22:59 AM: 5 | \r\n1:22:59 AM: 6 | declare function useAsyncState\u003CT>(promise: Promise\u003CT>, defaultState: T, delay?: number, catchFn?: (e: Error) => void): {\r\n1:22:59 AM: > 7 | state: Ref\u003Cimport(\"@vue/composition-api\").UnwrapRef\u003CT>>;\r\n1:22:59 AM: | ^\r\n1:22:59 AM: 8 | ready: Ref\u003Cboolean>;\r\n1:22:59 AM: 9 | };\r\n```",[3203],{"name":3204,"color":3205},"bug","d73a4a",94,"Incorrect type definition file for Vue 3 version of Vueuse.","2020-07-01T18:11:39Z","https://github.com/vueuse/vueuse/issues/94",0.69364625,{"description":3212,"labels":3213,"number":3214,"owner":3138,"repository":3215,"state":3187,"title":3216,"updated_at":3217,"url":3218,"score":3219},"I'm trying to create a vue plugin, and I decided to use rollup as my module bundler. My project is inspired by [pinia](https://github.com/vuejs/pinia), so it has similar dependencies, such as [`rollup-plugin-typescript2`](https://github.com/ezolenko/rollup-plugin-typescript2) to transpile the typescript, and to do type checks, but when enabling the `check` option, transpilation fails with the following message:\r\n```\r\n[!] (plugin rpt2) Error: \u003CprojectDir>/src/plugin.ts(1,15): semantic error TS2305: Module '\"vue-demi\"' has no exported member 'App'.\r\n```\r\nIf the `check` option is disabled, the transpilation doesn't fail.\r\n\r\nHere is a minimal repository, in which the error occurs\r\nhttps://github.com/marekvospel/vue-demi-rollup",[],149,"vue-demi","Module '\"vue-demi\"' has no exported member 'App'.","2022-04-04T06:00:09Z","https://github.com/vueuse/vue-demi/issues/149",0.6997071,["Reactive",3221],{},["Set"],["ShallowReactive",3224],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fuZ8CGvQAr9qtZUk1ZB8DQF2QQqM1Uvtk0HlT2qvTtqw":-1},"/vueuse/sound/14"]