\r\n \u003C/div>\r\n\u003C/template>\r\n```\r\n```shell-script\r\nTS2322: Type 'string | null | undefined' is not assignable to type 'string | number | undefined'.\r\n```\r\n```html\r\n\u003Cscript setup lang=\"ts\">\r\nconst value = ref\u003Cboolean|undefined>();\r\nconst options = [\r\n {\r\n label: 'Yes',\r\n value: true\r\n },\r\n {\r\n label: 'No',\r\n value: false\r\n },\r\n {\r\n label: 'None selected',\r\n value: undefined\r\n }\r\n];\r\n\u003C/script>\r\n\u003Ctemplate>\r\n \u003Cdiv>\r\n \u003CUSelectMenu\r\n :options=\"options\"\r\n v-model=\"value\"\r\n value-attribute=\"value\" option-attribute=\"label\"\r\n />\r\n \u003C/div>\r\n\u003C/template>\r\n```\r\n```shell-script\r\nTS2322: Type 'boolean | undefined' is not assignable to type 'string | number | Record\u003Cstring, any> | unknown[] | undefined'.\r\n```\r\n\r\n### Additional context\r\n\r\n\r\n### Logs\r\n\r\n```shell-script\r\napp.vue:14:15 - error TS2322: Type 'string | null | undefined' is not assignable to type 'string | number | undefined'.\r\n\r\n14 \u003CUInput v-model.trim=\"inputValue\" />\r\n ~~~~~~~~~~\r\n\r\n node_modules/@nuxt/ui/dist/runtime/components/forms/Input.vue.d.ts:244:5\r\n 244 modelValue: string | number;\r\n ~~~~~~~~~~\r\n The expected type comes from property 'modelValue' which is declared here on type 'Partial\u003C{ size: InputSize; ui: any; id: string; icon: string; color: any; type: string; class: any; name: string; modelValue: string | number; leading: boolean; variant: InputVariant; ... 12 more ...; modelModifiers: { ...; }; }> & Omit\u003C...> & Record\u003C...>'\r\n\r\n\r\nFound 1 error in app.vue:14\r\n```\r\n",[2944,2945,2948],{"name":2903,"color":2904},{"name":2946,"color":2947},"closed-by-bot","ededed",{"name":2949,"color":2947},"stale",1710,"Unable to use boolean values with USelectMenu or null with UInput","2025-06-19T02:12:37Z","https://github.com/nuxt/ui/issues/1710",0.6646371,{"description":2956,"labels":2957,"number":2967,"owner":2912,"repository":2912,"state":2936,"title":2968,"updated_at":2969,"url":2970,"score":2971},"### Environment\n\n```\n- Operating System: Linux\n- Node Version: v18.20.3\n- Nuxt Version: 3.15.0\n- CLI Version: 3.17.2\n- Nitro Version: 2.10.4\n- Package Manager: npm@10.2.3\n- Builder: -\n- User Config: default\n- Runtime Modules: -\n- Build Modules: -\n```\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-mg1abp6d?file=app.vue\n\n### Describe the bug\n\nIn the Nuxt `v3.15` `compatibilityVersion: 4` doesn't change `data` type to `undefined` returned by `useFetch` as described in the [documentation](https://nuxt.com/docs/getting-started/upgrade#respect-defaults-when-clearing-data-in-useasyncdata-and-usefetch). It's `null`.\n\nIt works in `v3.14` as expected.\n\n```\n ERROR(vue-tsc) 'data.value' is possibly 'null'.\n FILE app.vue:10:12\n\n 8 | const dataValue = computed(() => {\n 9 | if (data.value !== undefined) {\n > 10 | return data.value.woof;\n | ^^^^^^^^^^\n 11 | }\n 12 | });\n 13 | \u003C/script>\n```",[2958,2961,2964],{"name":2959,"color":2960},"types","2875C3",{"name":2962,"color":2963},"pending triage","E99695",{"name":2965,"color":2966},"possible regression","B90A42",30369,"`compatibilityVersion 4` doesn't change `useFetch` return data types","2024-12-27T21:33:08Z","https://github.com/nuxt/nuxt/issues/30369",0.668587,{"labels":2973,"number":2985,"owner":2912,"repository":2912,"state":2936,"title":2986,"updated_at":2987,"url":2988,"score":2989},[2974,2977,2978,2981,2982],{"name":2975,"color":2976},"good first issue","fbca04",{"name":2959,"color":2960},{"name":2979,"color":2980},"3.x","29bc7f",{"name":2903,"color":2904},{"name":2983,"color":2984},"🔨 p3-minor","FBCA04",14437,"Type wrong: `default` option of `useFetch` ","2023-03-11T22:36:12Z","https://github.com/nuxt/nuxt/issues/14437",0.66973126,{"description":2991,"labels":2992,"number":3002,"owner":2912,"repository":2912,"state":2936,"title":3003,"updated_at":3004,"url":3005,"score":3006},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v18.12.1`\r\n- Nuxt Version: `3.0.0`\r\n- Nitro Version: `1.0.0`\r\n- Package Manager: `npm@8.19.2`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n\n\n### Reproduction\n\nThe official template shows this problem out of the box:\r\n\r\n```bash\r\nnpx nuxi init -t my-module\r\ncd my-module\r\nnpm i\r\n```\n\n### Describe the bug\n\nIn the `nuxt.config.ts` you should find this typing error:\r\n\r\n```\r\nType 'NuxtModule\u003CModuleOptions>' is not assignable to type 'string | NuxtModule\u003CModuleOptions> | [(string | NuxtModule\u003CModuleOptions> | undefined)?, ({ [x: string]: any; } | undefined)?] | undefined'.\r\n```\r\n\r\nAdditionally, the types seem to be too loose and not autocomplete:\r\n\r\n```ts\r\nimport MyModule from '..'\r\n\r\nexport default defineNuxtConfig({\r\n modules: [\r\n [MyModule, {\r\n // no autocompletion here\r\n }]\r\n ],\r\n myModule: {\r\n // or here\r\n addPlugin: true\r\n }\r\n})\r\n```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2993,2994,2995,2998,2999],{"name":2959,"color":2960},{"name":2979,"color":2980},{"name":2996,"color":2997},"workaround available","11376d",{"name":2903,"color":2904},{"name":3000,"color":3001},"schema","1d76db",15750,"Invalid types for `ModuleOptions` in `NuxtModule`","2023-01-22T00:09:19Z","https://github.com/nuxt/nuxt/issues/15750",0.6744379,{"description":3008,"labels":3009,"number":3015,"owner":2912,"repository":2912,"state":2936,"title":3016,"updated_at":3017,"url":3018,"score":3019},"### Environment\n\n------------------------------\r\n- Operating System: Darwin\r\n- Node Version: v18.18.0\r\n- Nuxt Version: 3.11.2\r\n- CLI Version: 3.11.1\r\n- Nitro Version: 2.9.6\r\n- Package Manager: yarn@1.22.21\r\n- Builder: -\r\n- User Config: ssr, app, nitro, runtimeConfig, devtools, css, modules, typescript, postcss, colorMode\r\n- Runtime Modules: nuxt-svgo@4.0.0, @vueuse/nuxt@10.7.2, @samk-dev/nuxt-vcalendar@1.0.2, dayjs-nuxt@2.1.9, @pinia/nuxt@0.5.1, @nuxt/image@1.3.0, @nuxtjs/device@3.1.1, @nuxtjs/color-mode@3.3.2, nuxt-swiper@1.2.2\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nTo reproduce you will need this configuration:\r\n{\r\n \"name\": \"nuxt-app\",\r\n \"private\": true,\r\n \"type\": \"module\",\r\n \"scripts\": {\r\n \"build\": \"nuxt build\",\r\n \"dev\": \"nuxt dev\",\r\n \"generate\": \"nuxt generate\",\r\n \"preview\": \"nuxt preview\",\r\n \"postinstall\": \"nuxt prepare\",\r\n \"lint\": \"eslint .\",\r\n \"lint:fix\": \"eslint . --fix\"\r\n },\r\n \"devDependencies\": {\r\n \"@nuxt/eslint-config\": \"^0.2.0\",\r\n \"@nuxtjs/color-mode\": \"^3.3.2\",\r\n \"@nuxtjs/device\": \"^3.1.1\",\r\n \"@samk-dev/nuxt-vcalendar\": \"^1.0.2\",\r\n \"@vueuse/core\": \"^10.7.2\",\r\n \"@vueuse/nuxt\": \"^10.7.2\",\r\n \"add\": \"^2.0.6\",\r\n \"autoprefixer\": \"^10.4.17\",\r\n \"dayjs-nuxt\": \"^2.1.9\",\r\n \"eslint\": \"^8.56.0\",\r\n \"nuxt\": \"^3.11.2\",\r\n \"nuxt-svgo\": \"^4.0.0\",\r\n \"postcss\": \"^8.4.33\",\r\n \"sass\": \"^1.70.0\",\r\n \"tailwindcss\": \"^3.4.1\",\r\n \"typescript\": \"^5.4.4\",\r\n \"vue\": \"^3.4.21\",\r\n \"vue-router\": \"^4.2.5\",\r\n \"vue-tsc\": \"^1.8.27\",\r\n \"yarn\": \"^1.22.21\"\r\n },\r\n \"dependencies\": {\r\n \"@nuxt/image\": \"^1.3.0\",\r\n \"@pinia/nuxt\": \"^0.5.1\",\r\n \"@types/crypto-js\": \"^4.2.2\",\r\n \"@types/memory-cache\": \"^0.2.5\",\r\n \"@vueuse/integrations\": \"^10.7.2\",\r\n \"animate.css\": \"^4.1.1\",\r\n \"crypto-js\": \"^4.2.0\",\r\n \"defu\": \"^6.1.4\",\r\n \"memory-cache\": \"^0.2.0\",\r\n \"nuxt-swiper\": \"^1.2.2\",\r\n \"pinia\": \"^2.1.7\",\r\n \"ufo\": \"^1.5.3\",\r\n \"universal-cookie\": \"^7.0.1\"\r\n }\r\n}\r\n\r\nI am using Webstorm\n\n### Describe the bug\n\nI have this code to make POST request to server:\r\nconst publications = await $fetch\u003CPublicationsResponse>('/v1/publication/search?limit=10&page=1', {\r\n method: 'POST',\r\n body: {\r\n \"categories\": [\r\n {\r\n \"id\": props.categoryId\r\n }\r\n ]\r\n }\r\n})\r\n\r\nI am getting this error:\r\n\r\n\r\nIts only disappears, when I am removing method: 'POST', but I need to make Post request.\r\nWhat can be wrong?\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3010,3011,3012,3014],{"name":2979,"color":2980},{"name":2962,"color":2963},{"name":3013,"color":2984},"needs reproduction",{"name":2946,"color":2947},26650,"Types issue in $fetch","2024-04-13T01:42:05Z","https://github.com/nuxt/nuxt/issues/26650",0.6868294,{"description":3021,"labels":3022,"number":3024,"owner":2912,"repository":2912,"state":2936,"title":3025,"updated_at":3026,"url":3027,"score":3028},"### Environment\n\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v20.14.0\r\n- Nuxt Version: 3.12.4\r\n- CLI Version: 3.12.0\r\n- Nitro Version: 2.9.7\r\n- Package Manager: pnpm@9.7.1\r\n- Builder: -\r\n- User Config: runtimeConfig, extends, modules, ui, colorMode, routeRules, devtools, typescript, future, eslint, nitro, i18n, compatibilityDate\r\n- Runtime Modules: @nuxt/eslint@0.5.0, @nuxt/fonts@0.7.1, @nuxt/ui@2.18.4, @vueuse/nuxt@10.11.0, @nuxtjs/i18n@8.5.0\r\n- Build Modules: -\r\n------------------------------\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/nuxt-ui-u6tm1b?file=app.vue\n\n### Describe the bug\n\nWhen using a `v-model` prop with some initial object values (such as fetched already selected data from backend), the `\u003CUSelectMenu>` component doesn't show these as selected and seems to ignore them completely.\r\n\r\nEven when selecting the same objects again, it just seems to add them to the array and disregard anything, that was there previously.\n\n### Additional context\n\nThe behaviour changes when setting the `by` prop. In my case, I set it to `id`, after which I can see the object as selected, **but only** in the dropdown.\r\nThe button itself still shows `0 selected`.\n\n### Logs\n\n_No response_",[3023],{"name":2962,"color":2963},28733,"SelectMenu initial object values","2024-08-28T03:27:34Z","https://github.com/nuxt/nuxt/issues/28733",0.6892183,{"description":3030,"labels":3031,"number":3035,"owner":2912,"repository":2913,"state":2936,"title":3036,"updated_at":3037,"url":3038,"score":3039},"### Environment\n\n------------------------------\r\n- Operating System: Darwin\r\n- Node Version: v20.10.0\r\n- Nuxt Version: 3.13.0\r\n- CLI Version: 3.12.0\r\n- Nitro Version: 2.9.7\r\n- Package Manager: npm@10.2.3\r\n- Builder: -\r\n- User Config: compatibilityDate, devtools, experimental, ssr, typescript, srcDir, runtimeConfig, extends, modules, sourcemap, ui, postcss, tailwindcss, vite, nitro, components, css, imports, i18n\r\n- Runtime Modules: @nuxt/test-utils/module@3.14.1, @pinia/nuxt@0.5.4, @nuxt/ui@2.18.4, @nuxtjs/i18n@8.5.2, @nuxt/fonts@0.7.2, @vueuse/nuxt@11.0.3, @nuxt/eslint@0.5.6, nuxt-eslint-auto-explicit-import@0.0.2, @nuxt/image@1.8.0, @nuxtjs/fontaine@0.4.3\r\n- Build Modules: -\r\n------------------------------\n\n### Version\n\nv2.18.4\n\n### Reproduction\n\nNone\n\n### Description\n\nHeads-up, my tests are failing in the Nuxt update [3.13.0 -> 3.13.1]\r\n\r\n```\r\nError: TypeError: useId is not a function\r\n ❯ ../node_modules/@nuxt/ui/dist/runtime/components/forms/SelectMenu.vue:397:68\r\n ```\r\n\r\n\r\nNuxt 3.13.1 switched to using the native Vue useId \n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3032,3033],{"name":2903,"color":2904},{"name":3013,"color":3034},"CB47CF",2158,"Nuxt v3.13.1 has a breaking change with useId","2024-09-12T10:45:01Z","https://github.com/nuxt/ui/issues/2158",0.69031054,["Reactive",3041],{},["Set"],["ShallowReactive",3044],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f18-LNa_Tbr9S_2mS72tNlGKLz3LXBNc9yUZlTvJ-1zw":-1},"/nuxt/ui/1897"]