\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_",[2909,2912,2915,2916],{"name":2910,"color":2911},"workaround available","11376d",{"name":2913,"color":2914},"bug","d73a4a",{"name":2899,"color":2900},{"name":2917,"color":2918},"🍰 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":2925,"labels":2926,"number":2928,"owner":2868,"repository":2929,"state":2870,"title":2930,"updated_at":2931,"url":2932,"score":2933},"### 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_",[2927],{"name":2913,"color":2914},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":2935,"labels":2936,"number":2948,"owner":2868,"repository":2868,"state":2949,"title":2950,"updated_at":2951,"url":2952,"score":2953},"### 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_",[2937,2940,2943,2944,2945],{"name":2938,"color":2939},"good first issue","fbca04",{"name":2941,"color":2942},"3.x","29bc7f",{"name":2913,"color":2914},{"name":2899,"color":2900},{"name":2946,"color":2947},"🔨 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":2955,"labels":2956,"number":2963,"owner":2868,"repository":2868,"state":2949,"title":2964,"updated_at":2965,"url":2966,"score":2967},"### 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_",[2957,2958,2959,2960],{"name":2941,"color":2942},{"name":2896,"color":2897},{"name":2899,"color":2900},{"name":2961,"color":2962},"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":2969,"number":2974,"owner":2868,"repository":2868,"state":2949,"title":2975,"updated_at":2976,"url":2977,"score":2978},[2970,2971,2972,2973],{"name":2941,"color":2942},{"name":2913,"color":2914},{"name":2899,"color":2900},{"name":2946,"color":2947},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":2980,"labels":2981,"number":2881,"owner":2868,"repository":2984,"state":2949,"title":2985,"updated_at":2986,"url":2987,"score":2886},"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",[2982],{"name":2913,"color":2983},"ff281a","nuxt.com","User avatar is not correct in Admin","2022-04-26T12:36:08Z","https://github.com/nuxt/nuxt.com/issues/381",{"description":2989,"labels":2990,"number":2996,"owner":2868,"repository":2984,"state":2949,"title":2997,"updated_at":2998,"url":2999,"score":3000},"Instead of hover, would like to see if we can simplify remove the hover also on desktop.\n\n",[2991,2993],{"name":2879,"color":2992},"1ad6ff",{"name":2994,"color":2995},"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",3002],{},["Set"],["ShallowReactive",3005],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$ffNqI5Chc8co0DHGPaC2wG6ag7NubIlfP4RbhRWrLshM":-1},"/nuxt/nuxt.com/980"]