\n \u003C/template>\n \u003C/USelect>\n \u003C/UFormField>```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[2882,2885],{"name":2883,"color":2884},"bug","d73a4a",{"name":2869,"color":2870},3148,"closed","V3 In Select slot trailing","2025-01-25T13:13:41Z","https://github.com/nuxt/ui/issues/3148",0.7120498,{"description":2893,"labels":2894,"number":2898,"owner":2872,"repository":2872,"state":2887,"title":2899,"updated_at":2900,"url":2901,"score":2902},"How to fix:\r\n{ NuxtServerError: Can't set headers after they are sent.\r\nat validateHeader (_http_outgoing.js:491:11)\r\nat ServerResponse.setHeader (_http_outgoing.js:498:3)\r\nat Renderer.nuxtMiddleware (/var/www/myweb/node_modules/nuxt/lib/core/middleware/nuxt.js:37:11)\r\n'at \u003Canonymous>\r\n'at process._tickCallback (internal/process/next_tick.js:188:7) statusCode: 500, name: 'NuxtServerError' }\r\n0|mywork_d | Error: Can't set headers after they are sent.\r\n'at validateHeader (_http_outgoing.js:491:11)\r\n'at ServerResponse.setHeader (_http_outgoing.js:498:3)\r\n'at sendResponse (/var/www/myweb/node_modules/nuxt/lib/core/middleware/error.js:20:9)\r\n'at Renderer.errorMiddleware (/var/www/myweb/node_modules/nuxt/lib/core/middleware/error.js:47:5)\r\n'at call (/var/www/myweb/node_modules/connect/index.js:235:7)\r\n'at next (/var/www/myweb/node_modules/connect/index.js:183:5)\r\n'at Renderer.nuxtMiddleware (/var/www/myweb/node_modules/nuxt/lib/core/middleware/nuxt.js:89:5)\r\n'at \u003Canonymous>\r\n'at process._tickCallback (internal/process/next_tick.js:188:7)\r\n\r\nThanks!\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This question is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2648\">#c2648\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2895],{"name":2896,"color":2897},"2.x","d4c5f9",3059,"NuxtServerError: Can't set headers after they are sent.","2023-01-18T16:09:57Z","https://github.com/nuxt/nuxt/issues/3059",0.7247532,{"description":2904,"labels":2905,"number":2907,"owner":2872,"repository":2873,"state":2887,"title":2908,"updated_at":2909,"url":2910,"score":2911},"### Environment\n\n- Operating System: Linux\n- Node Version: v20.15.1\n- Nuxt Version: 3.14.1592\n- CLI Version: 3.16.0\n- Nitro Version: 2.10.4\n- Package Manager: pnpm@9.14.2\n- Builder: -\n- User Config: default\n- Runtime Modules: @nuxtjs/device@3.2.4, @vueuse/nuxt@12.0.0, @nuxt/image@1.8.1, @nuxt/eslint@0.7.2, @nuxt/test-utils/module@3.15.1, @nuxt/ui@2.19.2, @pinia/nuxt@0.8.0, pinia-plugin-persistedstate/nuxt\n- Build Modules: -\n\n### Version\n\n2.19.2\n\n### Reproduction\n\nhttps://stackblitz.com/edit/nuxt-ui-jqjcwwoz\n\n### Description\n\nThe variant for `outline` and `subtle` doesn't have the corresponding ring color class when using any colors except `primary` and `red`.\n\nThe ring color stays blue-ish and i can see that the css class is missing.\n\nThis bug exist for both dark and light modes.\n\n\n\n### Additional context\n\nThis bug only occurs when using the `UBadge` inside a component. It also occurs only when passing the badge colors through the component props.\n\n\n\n### Logs\n\n```shell-script\n\n```",[2906],{"name":2883,"color":2884},2861,"UBadge: Wrong ring color in outline and subtle variants","2025-01-13T16:34:19Z","https://github.com/nuxt/ui/issues/2861",0.73242205,{"description":2913,"labels":2914,"number":2919,"owner":2872,"repository":2872,"state":2887,"title":2920,"updated_at":2921,"url":2922,"score":2923},"I am trying to have an endpoint return JSON after an email is sent. I have the basic example below. res.end() closes the connection but continues I believe to the next() function which at the end tries to set headers. Is there any way around this? \r\n\r\nAny help with be great!\r\n\r\n```\u003Cscript>\r\nexport default {\r\n layout: 'BlankLayout',\r\n fetch({ req, res }) {\r\n const body = JSON.stringify({ ok: true });\r\n res.setHeader('Content-Length', Buffer.byteLength(body));\r\n res.end(body);\r\n },\r\n};\r\n\u003C/script>\r\n```\r\n\r\n\r\n",[2915,2918],{"name":2916,"color":2917},"pending triage","E99695",{"name":2896,"color":2897},8677,"Error Cannot set headers after they are sent to the client","2023-01-22T15:38:40Z","https://github.com/nuxt/nuxt/issues/8677",0.7382181,{"description":2925,"labels":2926,"number":2927,"owner":2872,"repository":2928,"state":2887,"title":2929,"updated_at":2930,"url":2931,"score":2932},"Not sure if it's directly from @nuxt/icon or a dependency breaking change, but `build` breaks as soon as you add `@nuxt/icon` to modules. `develop` works okay.\n\nDowngrading `unenv` or using the nightly version didn't help.\n\n**To reproduce:**\n1. `pnpx nuxthub init test-app`\n2. `pnpx nuxi module add icon`\n3. `pnpm build`\n\n**Logs:**\n```\n[nitro 3:07:35 PM] ERROR RollupError: node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/prompt-BuYSwD7c.js (1:9): \"stdin\" is not exported by \"node_modules/.pnpm/unenv@1.10.0/node_modules/unenv/runtime/node/process/index.mjs\", imported by \"node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/prompt-BuYSwD7c.js\".\n\n\n1: import { stdin, stdout } from \"node:process\";\n ^\n2: import f from \"node:readline\";\n3: import { WriteStream } from \"node:tty\";\n\n\n[3:07:35 PM] ERROR node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/prompt-BuYSwD7c.js (1:9): \"stdin\" is not exported by \"node_modules/.pnpm/unenv@1.10.0/node_modules/unenv/runtime/node/process/index.mjs\", imported by \"node_modules/.cache/nuxt/.nuxt/dist/server/_nuxt/prompt-BuYSwD7c.js\".\n\n at getRollupError (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/parseAst.js:392:41)\n at error (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/parseAst.js:388:42)\n at Module.error (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:13971:16)\n at Module.traceVariable (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:14419:29)\n at ModuleScope.findVariable (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:12121:39)\n at ChildScope.findVariable (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:7467:38)\n at ClassBodyScope.findVariable (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:7467:38)\n at ChildScope.findVariable (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:7467:38)\n at ChildScope.findVariable (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:7467:38)\n at FunctionScope.findVariable (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:7467:38)\n at Identifier.bind (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:6941:40)\n at AssignmentPattern.bind (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:4808:23)\n at Property.bind (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:4808:23)\n at ObjectPattern.bind (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:4804:28)\n at FunctionExpression.bind (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:4804:28)\n at MethodDefinition.bind (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:4808:23)\n at ClassBody.bind (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:4804:28)\n at ClassDeclaration.bind (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:4808:23)\n at Program.bind (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:4804:28)\n at Module.bindReferences (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:13950:18)\n at Graph.sortModules (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20201:20)\n at Graph.build (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20105:14)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20751:13\n at async catchUnfinishedHookActions (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20258:16)\n at async rollupInternal (node_modules/.pnpm/rollup@4.21.0/node_modules/rollup/dist/es/shared/node-entry.js:20746:5)\n at async _build (node_modules/.pnpm/nitropack@2.9.7_@opentelemetry+api@1.9.0_encoding@0.1.13_magicast@0.3.5_webpack-sources@3.2.3/node_modules/nitropack/dist/nitro.mjs:2633:20)\n at async node_modules/.pnpm/nuxt@3.13.2_@opentelemetry+api@1.9.0_@parcel+watcher@2.4.1_@types+node@20.14.9_encoding@0.1.1_ybhcnuqrdhnlo4pjzrhb752cba/node_modules/nuxt/dist/index.mjs:3630:5\n at async build (node_modules/.pnpm/nuxt@3.13.2_@opentelemetry+api@1.9.0_@parcel+watcher@2.4.1_@types+node@20.14.9_encoding@0.1.1_ybhcnuqrdhnlo4pjzrhb752cba/node_modules/nuxt/dist/index.mjs:5778:3)\n at async Object.run (node_modules/.pnpm/nuxi@3.13.2/node_modules/nuxi/dist/chunks/build.mjs:102:5)\n at async runCommand$1 (node_modules/.pnpm/nuxi@3.13.2/node_modules/nuxi/dist/shared/nuxi.b8b195e1.mjs:1648:16)\n at async runCommand$1 (node_modules/.pnpm/nuxi@3.13.2/node_modules/nuxi/dist/shared/nuxi.b8b195e1.mjs:1639:11)\n at async runMain$1 (node_modules/.pnpm/nuxi@3.13.2/node_modules/nuxi/dist/shared/nuxi.b8b195e1.mjs:1777:7)\n```\n\n---\n- Operating System: Darwin\n- Node Version: v22.9.0\n- Nuxt Version: 3.13.2\n- CLI Version: 3.14.0\n- Nitro Version: -\n- Package Manager: pnpm@9.11.0\n- Builder: -\n- User Config: -\n- Runtime Modules: -\n- Build Modules: -\n",[],269,"icon","Broken build - \"stdin\" is not exported by unenv","2024-10-28T14:06:31Z","https://github.com/nuxt/icon/issues/269",0.74688387,{"description":2934,"labels":2935,"number":2943,"owner":2872,"repository":2872,"state":2887,"title":2944,"updated_at":2945,"url":2946,"score":2947},"Hello! \r\n\r\nI'm just about to implement a proper CSP setup for my site and came across https://github.com/nuxt/nuxt.js/pull/2549. This is exactly what I need except for the fact that I'm using `generate` and can not set headers.\r\n\r\nWould you folks be open for a config option to decide between headers or a similar meta element in the head?\r\n\r\nThanks a bunch! :)\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This question is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2499\">#c2499\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2936,2939,2942],{"name":2937,"color":2938},"enhancement","8DEF37",{"name":2940,"color":2941},"good first issue","fbca04",{"name":2896,"color":2897},2874,"Allow to enable CSP with a meta element","2023-02-06T11:25:09Z","https://github.com/nuxt/nuxt/issues/2874",0.7482868,{"description":2949,"labels":2950,"number":2955,"owner":2872,"repository":2873,"state":2887,"title":2956,"updated_at":2957,"url":2958,"score":2959},"### Environment\n\n- OS : Windows 11\n- Node : 20.14.0 \n- Nuxt: lastest\n- Nuxt prisma : lastest\n\n### Version\n\n2.19.1\n\n### Reproduction\n\ninit lastest nuxt 3\nadd nuxt prisma module\nadd nuxt ui module\n\n` ERROR RollupError: node_modules/@prisma/nuxt/dist/runtime/server/utils/prisma.d.ts (2:8): Expected ';', '}' or \u003Ceof> (Note that you need plugins to import files that are not JavaScript) nitro 21:27:12 \n\n\n1: import { PrismaClient } from \"@prisma/client\";\n2: declare const prismaClientSingleton: () => PrismaClient\u003Cimport(\".prisma/client\").Prisma.PrismaClientOptions, never, i...\n ^\n3: declare const prisma: PrismaClient\u003Cimport(\".prisma/client\").Prisma.PrismaClientOptions, never, import(\"@prisma/client...\n4: export type CustomPrismaClient = ReturnType\u003Ctypeof prismaClientSingleton>;`\n\n### Description\n\nwhen remove `'@nuxt/ui'` from modules: [''] in nuxt.config.ts it's work can use npm run dev\nbut if add `'@nuxt/ui'` it''s error\n\n` ERROR RollupError: node_modules/@prisma/nuxt/dist/runtime/server/utils/prisma.d.ts (2:8): Expected ';', '}' or \u003Ceof> (Note that you need plugins to import files that are not JavaScript) nitro 21:27:12 \n\n\n1: import { PrismaClient } from \"@prisma/client\";\n2: declare const prismaClientSingleton: () => PrismaClient\u003Cimport(\".prisma/client\").Prisma.PrismaClientOptions, never, i...\n ^\n3: declare const prisma: PrismaClient\u003Cimport(\".prisma/client\").Prisma.PrismaClientOptions, never, import(\"@prisma/client...\n4: export type CustomPrismaClient = ReturnType\u003Ctypeof prismaClientSingleton>;`\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[2951,2952],{"name":2883,"color":2884},{"name":2953,"color":2954},"duplicate","cfd3d7",2813,"nuxt/ui conflict with nuxt/prisma","2024-12-04T08:33:58Z","https://github.com/nuxt/ui/issues/2813",0.7493466,{"description":2961,"labels":2962,"number":2970,"owner":2872,"repository":2872,"state":2887,"title":2971,"updated_at":2972,"url":2973,"score":2974},"### Environment\n\nhttps://codesandbox.io/s/new-haze-rmtleo?file=/app.vue\n\n### Reproduction\n\nOpen the page and the alert will pop-up.\n\n### Describe the bug\n\nThe useHead can be used for XSS Attack.\r\nIn my application, the user's inputs are part of the 'application/ld+json' script for SEO purposes. And a users can insert a malicious script.\n\n### Additional context\n\nGood to notice, the xss attack will work only if the script passed as a prop to a component.\n\n### Logs\n\n_No response_",[2963,2964,2967],{"name":2937,"color":2938},{"name":2965,"color":2966},"3.x","29bc7f",{"name":2968,"color":2969},"upstream","E8A36D",15668,"`useHeadSafe` composable to sanitise head metadata","2023-10-22T09:04:38Z","https://github.com/nuxt/nuxt/issues/15668",0.74985635,{"description":2976,"labels":2977,"number":2982,"owner":2872,"repository":2872,"state":2887,"title":2983,"updated_at":2984,"url":2985,"score":2986},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v16.13.0`\r\n- Nuxt Version: `3.2.0`\r\n- Nitro Version: `2.2.1`\r\n- Package Manager: `pnpm@7.13.2`\r\n- Builder: `vite`\r\n- User Config: `modules`, `unocss`\r\n- Runtime Modules: `@unocss/nuxt@0.49.4`\r\n- Build Modules: `-`\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-vgyh5u-anvs91?file=server%2Fapi%2Findex.ts\n\n### Describe the bug\n\nI want to use SSE in nuxt server.But there is an error\r\n```bash\r\n [nitro] [dev] [unhandledRejection] Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client\r\n```\r\n And when broswer page closed, the `req` cannot emit close event.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2978,2979],{"name":2965,"color":2966},{"name":2980,"color":2981},"needs details","493824",18956,"Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client","2023-02-17T02:30:07Z","https://github.com/nuxt/nuxt/issues/18956",0.7501825,["Reactive",2988],{},["Set"],["ShallowReactive",2991],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fxn9jKq-B51SFS4PiuZdwtpdMMAN5Ut7RgrDR5OzTUuo":-1},"/nuxt/ui/3425"]