\r\n\r\nself.addEventListener(\r\n 'message',\r\n (\r\n evt: MessageEvent\u003C{\r\n message: string\r\n }>,\r\n ) => {\r\n const { message } = evt.data\r\n const greeting = `Hello ${upperCase(message)} from assets!`\r\n\r\n postMessage({ greeting })\r\n },\r\n)\r\n```\r\n\r\nCreate a app.vue file\r\n\r\n```vue\r\n\u003Cscript setup lang=\"ts\">\r\nimport Runner from './utils/workers/index?worker'\r\n\r\nconst message = ref('Nuxt')\r\n\r\nfunction sayHello(from: 'workers' | 'composable') {\r\n if (from === 'workers') {\r\n const worker = new Runner()\r\n worker.postMessage({ message: message.value })\r\n worker.addEventListener(\r\n 'message',\r\n (\r\n evt: MessageEvent\u003C{\r\n greeting: string\r\n }>,\r\n ) => {\r\n const { greeting } = evt.data\r\n alert(greeting)\r\n },\r\n )\r\n } else {\r\n sayHelloFromComposable(message.value)\r\n }\r\n}\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n \u003Ch1>Demo with auto imports\u003C/h1>\r\n \u003CCustomInput v-model=\"message\" />\r\n \u003Cbutton type=\"submit\" @click=\"sayHello('composable')\">\r\n Hello from composable\r\n \u003C/button>\r\n \u003Cbutton type=\"submit\" @click=\"sayHello('workers')\">Hello from workers\u003C/button>\r\n\u003C/template>\r\n./assets/workers\r\n```\r\n\r\n### Describe the bug\r\n\r\n## Actual Behavior\r\n\r\nIn development mode, the utils/ directory is auto imported, so the upperCase function is available on the assets/index.ts file.\r\n\r\nIn production mode, we have this error:\r\n\r\n```txt\r\nUncaught ReferenceError: upperCase is not defined\r\n at index-8e797b43.js:1:88\r\n```\r\n\r\n## Expected Behavior\r\n\r\nThis should work with the same behavior in development and production mode.\r\n\r\n\r\n### Additional context\r\n\r\n\r\nI call the utils to function in `worker` file\r\n\r\n### Logs\r\n\r\n_No response_",[3062,3065,3068,3069],{"name":3063,"color":3064},"workaround available","11376d",{"name":3066,"color":3067},"bug","d73a4a",{"name":3052,"color":3053},{"name":3070,"color":3071},"🍰 p2-nice-to-have","0E8A16",24590,"Utils folder is not auto imported on production mode when using in worker file","2024-11-19T11:52:00Z","https://github.com/nuxt/nuxt/issues/24590",0.74260044,{"description":3078,"labels":3079,"number":3081,"owner":3021,"repository":3082,"state":3023,"title":3083,"updated_at":3084,"url":3085,"score":3086},"### Environment\r\n\r\n```\r\n------------------------------\r\n- Operating System: Darwin\r\n- Node Version: v21.6.1\r\n- Nuxt Version: 3.11.0\r\n- CLI Version: 3.10.1\r\n- Nitro Version: 2.9.4\r\n- Package Manager: bun@1.0.29\r\n- Builder: -\r\n- User Config: -\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\r\n```\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/github-krtpdn?file=test%2Fsomething.spec.ts\r\n\r\n### Describe the bug\r\n\r\nUsing `console.log()` within an e2e test doesnt output the test in stdout as well as in devtools \"Console\" tab. Only seems to work for beforeAll().\r\n\r\nTry:\r\n\r\n1. `bun run test`\r\n-> No logs in console\r\n\u003Cimg width=\"864\" alt=\"Bildschirmfoto 2024-03-19 um 16 15 57\" src=\"https://github.com/nuxt/nuxt/assets/5103210/74fafc99-45bf-4499-bdc0-151a90ff41b0\">\r\n\r\n2. ```bun run dev```, then open devtools -> Vitest\r\n> No logs in tab \"Console\"\r\n\r\n\u003Cimg width=\"420\" alt=\"Bildschirmfoto 2024-03-19 um 16 13 11\" src=\"https://github.com/nuxt/nuxt/assets/5103210/28aeb6de-832f-4b1e-bbc7-b101f7e4c56f\">\r\n\r\n### Logs\r\n\r\n_No response_",[3080],{"name":3066,"color":3067},795,"test-utils","e2e tests dont show any console logs in stdout and in vitest/ui","2025-03-13T08:34:24Z","https://github.com/nuxt/test-utils/issues/795",0.7479973,{"description":3088,"labels":3089,"number":3101,"owner":3021,"repository":3021,"state":3102,"title":3103,"updated_at":3104,"url":3105,"score":3106},"### Environment\n\n- Operating System: Linux\r\n- Node Version: v16.14.2\r\n- Nuxt Version: 3.4.3\r\n- Nitro Version: 2.4.0\r\n- Package Manager: npm@7.17.0\r\n- Builder: vite\r\n- User Config: -\r\n- Runtime Modules: -\r\n- Build Modules: -\n\n### Reproduction\n\nNuxt: https://stackblitz.com/edit/github-knhd4c?file=app.vue\r\nVanilla Vite (Working): https://stackblitz.com/edit/vitejs-vite-somqs4?file=main.js\n\n### Describe the bug\n\nIn classic (not type: module) web workers, Vite adds `importScripts('/@vite/env')` to the top of the worker file. In Nuxt, this import returns a page, not the script that it is supposed to, and throws the error: \"Refused to execute script from '/@vite/env' because its MIME type ('text/html') is not executable.\" This breaks the worker.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3090,3093,3096,3097,3098],{"name":3091,"color":3092},"good first issue","fbca04",{"name":3094,"color":3095},"3.x","29bc7f",{"name":3066,"color":3067},{"name":3052,"color":3053},{"name":3099,"color":3100},"🔨 p3-minor","FBCA04",20771,"closed","Non-module Web Workers broken","2023-07-24T16:10:49Z","https://github.com/nuxt/nuxt/issues/20771",0.6776345,{"description":3108,"labels":3109,"number":3116,"owner":3021,"repository":3021,"state":3102,"title":3117,"updated_at":3118,"url":3119,"score":3120},"### Environment\n\n------------------------------\r\n- Operating System: `Windows_NT`\r\n- Node Version: `v19.7.0`\r\n- Nuxt Version: `3.3.3`\r\n- Nitro Version: `2.3.2`\r\n- Package Manager: `npm@9.6.0`\r\n- Builder: `vite`\r\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-7tssgl?file=package.json\r\n\r\nI created close enought example as my app looking. So you need to `build & preview` it to see the error.\n\n### Describe the bug\n\nI'm trying to use webworkers according to vite documntation https://vitejs.dev/guide/features.html#import-with-query-suffixes\r\n\r\nAnd it looked smoothly, before `3.3.3`. Right now the whole app not working with `npm run build` - `npm run preview`.\r\nBut it works normally with `dev`.\r\n\r\nI mean it builds without error and start normally, no errors eather. But at any page of the app looks like chunk imports broken or something like that.\r\n\r\nFor example I/m importing `myWorker` at `/profile` - page of the app. But never the less at `/home` page still be broken app\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3110,3111,3112,3113],{"name":3094,"color":3095},{"name":3049,"color":3050},{"name":3052,"color":3053},{"name":3114,"color":3115},"upstream","E8A36D",20191,"Import Web Workers with query suffixes break app in production","2023-04-20T14:41:07Z","https://github.com/nuxt/nuxt/issues/20191",0.7067762,{"labels":3122,"number":3127,"owner":3021,"repository":3021,"state":3102,"title":3128,"updated_at":3129,"url":3130,"score":3131},[3123,3124,3125,3126],{"name":3094,"color":3095},{"name":3066,"color":3067},{"name":3052,"color":3053},{"name":3099,"color":3100},14267,"Vite's service worker imports have __NUXT_BASE__ in production builds","2023-01-19T17:31:41Z","https://github.com/nuxt/nuxt/issues/14267",0.70723116,{"description":3133,"labels":3134,"number":3034,"owner":3021,"repository":3137,"state":3102,"title":3138,"updated_at":3139,"url":3140,"score":3039},"I am in a Nuxt team project:\n\n\nBut I see only myself and link to dashboard goes to `/@Atinux/projects`\n\n\nI should have the team + my avatar like in header:\n\n",[3135],{"name":3066,"color":3136},"ff281a","nuxt.com","User avatar is not correct in Admin","2022-04-26T12:36:08Z","https://github.com/nuxt/nuxt.com/issues/381",{"description":3142,"labels":3143,"number":3149,"owner":3021,"repository":3137,"state":3102,"title":3150,"updated_at":3151,"url":3152,"score":3153},"Instead of hover, would like to see if we can simplify remove the hover also on desktop.\n\n",[3144,3146],{"name":3032,"color":3145},"1ad6ff",{"name":3147,"color":3148},"responsive","1cd1c6",822,"[Community] On Nuxters page, display GitHub icon by default and change activity icon","2023-02-15T12:32:51Z","https://github.com/nuxt/nuxt.com/issues/822",0.73783463,["Reactive",3155],{},["Set"],["ShallowReactive",3158],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$ffNqI5Chc8co0DHGPaC2wG6ag7NubIlfP4RbhRWrLshM":-1},"/nuxt/nuxt.com/980"]