\n```\n\nThe error:\n```\n ERROR RollupError: [plugin impound] Vue app aliases are not allowed in server runtime. [importing #build/nuxt.config.mjs from node_modules/nuxt/dist/app/nuxt.js]\n```\n\nAs the tutorial indicated, my ``nuxt.config.ts`` file contains that: (keeps happening even by removing that config)\n```ts\n alias: {\n \"@\": resolve(__dirname, \"/\"),\n },\n```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3059],{"name":3037,"color":3038},32065,"RollupError: [plugin impound] Vue app aliases are not allowed in server runtime.","2025-05-10T21:11:48Z","https://github.com/nuxt/nuxt/issues/32065",0.65045977,{"description":3066,"labels":3067,"number":3072,"owner":3024,"repository":3024,"state":3026,"title":3073,"updated_at":3074,"url":3075,"score":3076},"### Environment\n\n- Operating System: `Linux`\n- Node Version: `v20.18.1`\n- Nuxt Version: `3.17.5`\n- CLI Version: `3.25.1`\n- Nitro Version: `2.11.12`\n- Package Manager: `bun@1.2.17`\n- Builder: `-`\n- User Config: `compatibilityDate`,\n- Runtime Modules: `-`\n- Build Modules: `-`\n\n\n### Reproduction\n\nhttps://codesandbox.io/p/sandbox/thirsty-heisenberg-xf9m4w\n\n### Describe the bug\n\nI have a module with a `addServerTemplate`:\n```\naddServerTemplate({\n filename: '#my-module/test.mjs',\n getContents () {\n return 'export const test = 123'\n },\n})\n```\n\nThen I try to import it on a server route from the same module:\nmy-module/runtime/server/api/test.ts\n```\nimport { test } from '#my-module/test.mjs'\n\nexport default eventHandler(() => {\n return test\n})\n```\n\nIt works well in dev but when trying to build I get:\n```\n ERROR Nuxt Build Error: [vite]: Rollup failed to resolve import \"#my-module/test.mjs\" from \"/my-module/runtime/server/api/test.ts\".\nThis is most likely unintended because it can break your application at runtime.\nIf you do want to externalize this module explicitly add it to\nbuild.rollupOptions.external\n```\n\n---\n\nI fixed it temporarily with:\n```\n extendViteConfig(cfg => {\n cfg.build ||= {}\n cfg.build.rollupOptions ||= {}\n cfg.build.rollupOptions.external ||= []\n cfg.build.rollupOptions.external.push('#my-module/test.mjs')\n })\n```\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3068,3069],{"name":3037,"color":3038},{"name":3070,"color":3071},"needs reproduction","FBCA04",32414,"[nuxt/kit] Nuxt Build Error: [vite]: Rollup failed to resolve import","2025-06-20T19:55:36Z","https://github.com/nuxt/nuxt/issues/32414",0.65103024,{"description":3078,"labels":3079,"number":3086,"owner":3024,"repository":3024,"state":3026,"title":3087,"updated_at":3088,"url":3089,"score":3090},"### Environment\r\n\r\n- Operating System: `Darwin`\r\n- Node Version: `v18.16.1`\r\n- Nuxt Version: `3.6.2`\r\n- Nitro Version: `2.5.2`\r\n- Package Manager: `pnpm@8.7.6`\r\n- Builder: `vite`\r\n- User Config: `runtimeConfig`, `modules`, `build`, `auth`, `i18n`, `css`, `postcss`, `imports`\r\n- Runtime Modules: `nuxt-icon@0.5.0`, `@nuxtjs/i18n@8.0.0-beta.13`, `@pinia/nuxt@0.4.11`, `@nuxt/devtools@0.6.7`, `@formkit/nuxt@0.19.2`, `@sidebase/nuxt-auth@0.6.0-beta.5`, `@vueuse/nuxt@10.5.0`, `@nuxt/ui@2.9.0`\r\n- Build Modules: `-`\r\n\r\n\r\n### Reproduction\r\n\r\n\u003Cimg width=\"245\" alt=\"image\" src=\"https://github.com/nuxt/nuxt/assets/9151572/f1ad24f6-e247-4c34-8fdf-c814ee57b659\">\r\n\r\nAdd any import with a `.` in the from argument (here I'm using `chart.js`.\r\n\r\n### Describe the bug\r\n\r\nThe generated `imports.d.ts` looks like this:\r\n\r\n\r\nNote the `.js` has been removed. I presume as there is something in the import generator that tries to exclude file extensions.\r\n\r\nI have tried a number of work arounds including escaping the `.` which lets me get the dot to come through but nothing quite worked.\r\n\r\nAdding a trailing `/` generates the import ok but then I get a Vite import error when running the application as there are no named exports of the package.\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[3080,3081,3084,3085],{"name":3034,"color":3035},{"name":3082,"color":3083},"workaround available","11376d",{"name":3037,"color":3038},{"name":3049,"color":3050},23930,"`addImports` does not support `.` in from","2023-10-28T11:57:04Z","https://github.com/nuxt/nuxt/issues/23930",0.6530987,{"description":3092,"labels":3093,"number":3099,"owner":3024,"repository":3024,"state":3026,"title":3100,"updated_at":3101,"url":3102,"score":3103},"### Environment\n\nNuxt 3 compatibilityDate: '2024-11-01'\n\n\"dependencies\": {\n\t\t\"@limonische/vue3-transition-expand\": \"^2.0.2\",\n\t\t\"@nuxt/fonts\": \"0.11.2\",\n\t\t\"@nuxt/image\": \"1.10.0\",\n\t\t\"@nuxt/scripts\": \"0.11.6\",\n\t\t\"@nuxtjs/device\": \"^3.2.4\",\n\t\t\"@nuxtjs/fontaine\": \"0.5.0\",\n\t\t\"@nuxtjs/seo\": \"3.0.3\",\n\t\t\"@pinia/nuxt\": \"^0.11.1\",\n\t\t\"@unhead/vue\": \"^2.0.10\",\n\t\t\"@vee-validate/nuxt\": \"^4.15.1\",\n\t\t\"@vee-validate/zod\": \"^4.15.1\",\n\t\t\"click-outside-vue3\": \"^4.0.1\",\n\t\t\"defu\": \"^6.1.4\",\n\t\t\"nuxt\": \"^3.17.5\",\n\t\t\"nuxt-svgo\": \"4.0.17\",\n\t\t\"nuxt-viewport\": \"2.3.0\",\n\t\t\"pinia\": \"^3.0.3\",\n\t\t\"pinia-plugin-persistedstate\": \"^4.3.0\",\n\t\t\"swiper\": \"^11.2.8\",\n\t\t\"vue\": \"^3.5.16\",\n\t\t\"vue-dragscroll\": \"^4.0.6\",\n\t\t\"vue-router\": \"^4.5.1\",\n\t\t\"vue-the-mask\": \"^0.11.1\",\n\t\t\"zod\": \"^3.25.56\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@nuxt/eslint\": \"1.3.0\",\n\t\t\"@nuxtjs/i18n\": \"9.5.3\",\n\t\t\"@types/vue-the-mask\": \"^0.11.5\",\n\t\t\"@unocss/nuxt\": \"66.1.0-beta.12\",\n\t\t\"@unocss/preset-web-fonts\": \"66.1.0-beta.12\",\n\t\t\"@unocss/reset\": \"66.1.0-beta.12\",\n\t\t\"eslint\": \"^9.28.0\",\n\t\t\"eslint-plugin-import\": \"^2.31.0\",\n\t\t\"husky\": \"^9.1.7\",\n\t\t\"lint-staged\": \"^15.5.2\",\n\t\t\"nuxt-delay-hydration\": \"^1.3.8\",\n\t\t\"prettier\": \"^3.5.3\",\n\t\t\"typescript\": \"^5.8.3\",\n\t\t\"unocss\": \"66.1.0-beta.12\",\n\t\t\"vue-tsc\": \"^2.2.10\"\n\t},\n\n### Reproduction\n\nNuxt 3 and install nuxt seo modules\n\n### Describe the bug\n\nI added by nuxt-seo module. but on dev mode I can't research site and on building got such error.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\nNuxt Build Error: [nuxt:imports-transform] [unimport] failed to find \"useSiteConfig\" imported from \"#imports\"\nfile: .../node_modules/.pnpm/nuxt-og-image@5.1.6_@unhead_bd9f600228a26dea97688b425fc4568e/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community/SimpleBlog.vue\n```",[3094,3095,3096],{"name":3037,"color":3038},{"name":3070,"color":3071},{"name":3097,"color":3098},"closed-by-bot","ededed",32347,"Nuxt Build Error: [nuxt:imports-transform] [unimport] failed to find \"useSiteConfig\" imported from \"#imports\"","2025-06-17T02:13:06Z","https://github.com/nuxt/nuxt/issues/32347",0.6569494,{"labels":3105,"number":3106,"owner":3024,"repository":3024,"state":3026,"title":3107,"updated_at":3108,"url":3109,"score":3110},[],12725,"Failed to resolve import \"#build/plugins\" when adding alias for `@vue/composition-api`","2023-01-19T16:11:35Z","https://github.com/nuxt/nuxt/issues/12725",0.6589903,{"description":3112,"labels":3113,"number":3118,"owner":3024,"repository":3024,"state":3026,"title":3119,"updated_at":3120,"url":3121,"score":3122},"### Environment\n\n- Nuxt Version: 3.14.159\n- Nitro Version: 2.10.4\n- Runtime: Bun, using Nitro preset set to bun\n- Compatibility Mode: Compatibility version set to 4 with compatibilityDate: '2024-03-26'\n- Node.js Version: v22.2.0\n- Build Command Used: bun run build (also tested with npm run build, with the same results)\n- Package Managers Tried: Both Bun and npm (issue persists across both)\n\n### Reproduction\n\n- The error primarily revolves around module incompatibility in the Bun server runtime, specifically with the crossws module import in the Nitro preset.\n- My build completes the client side successfully but fails when building the server side with the Bun preset.\n\n### Describe the bug\n\nSteps Taken to Resolve:\n\n1. Updated Dependencies: All packages, including Nuxt, Nitro, and @nuxt/kit, are updated to the latest versions.\n2. Checked Issue #29804: This issue appears related, as the RollupError mentions a similar plugin impound issue with module imports in server runtime.\n3. Tried Various Nitro Presets: Tested with different Nitro presets (including bun and node-server), but the issue remains unchanged.\n4. Clean Reinstall: Removed node_modules and reinstalled dependencies with both bun install and npm install\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\nbun run build\n$ nuxt build\nNuxt 3.14.159 with Nitro 2.10.4 11:00:35 AM\nℹ Using default Tailwind CSS file nuxt:tailwindcss 11:00:36 AM\nℹ Nuxt Icon server bundle mode is set to local 11:00:37 AM\n[11:00:38 AM] ✔ Nuxt Icon discovered local-installed 3 collections: eos-icons, heroicons, lets-icons\nℹ Running with compatibility version 4 11:00:38 AM\nℹ Building client... 11:00:39 AM\nℹ vite v5.4.11 building for production... \n✔ Generated public .output/public nitro 11:00:47 AM\nℹ Building Nuxt Nitro server (preset: bun, compatibility date: 2024-03-26) nitro 11:00:47 AM\n\n[nitro 11:00:47 AM] ERROR RollupError: [plugin impound] This module cannot be imported in server runtime. [importing ../../node_modules/nitropack/node_modules/crossws/dist/adapters/bun.mjs from ../../node_modules/nitropack/dist/presets/bun/runtime/bun.mjs]\n\n\nundefined\n\n\n[11:00:47 AM] ERROR [plugin impound] This module cannot be imported in server runtime. [importing ../../node_modules/nitropack/node_modules/crossws/dist/adapters/bun.mjs from ../../node_modules/nitropack/dist/presets/bun/runtime/bun.mjs]\n\n at getRollupError (/home/hermes/Projetos-linux/back3nd/node_modules/rollup/dist/es/shared/parseAst.js:396:41)\n at error (/home/hermes/Projetos-linux/back3nd/node_modules/rollup/dist/es/shared/parseAst.js:392:42)\n at Object.error (/home/hermes/Projetos-linux/back3nd/node_modules/rollup/dist/es/shared/node-entry.js:20622:20)\n at Object.resolveId (/home/hermes/Projetos-linux/back3nd/node_modules/impound/dist/index.js:29:11)\n at /home/hermes/Projetos-linux/back3nd/node_modules/rollup/dist/es/shared/node-entry.js:20807:40\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async PluginDriver.hookFirstAndGetPlugin (/home/hermes/Projetos-linux/back3nd/node_modules/rollup/dist/es/shared/node-entry.js:20707:28)\n at async resolveId (/home/hermes/Projetos-linux/back3nd/node_modules/rollup/dist/es/shared/node-entry.js:19311:26)\n at async ModuleLoader.resolveId (/home/hermes/Projetos-linux/back3nd/node_modules/rollup/dist/es/shared/node-entry.js:19740:15)\n at async Object.resolveId (/home/hermes/Projetos-linux/back3nd/node_modules/@rollup/plugin-commonjs/dist/es/index.js:600:10)\n\n\n\n[11:00:47 AM] ERROR [plugin impound] This module cannot be imported in server runtime. [importing ../../node_modules/nitropack/node_modules/crossws/dist/adapters/bun.mjs from ../../node_modules/nitropack/dist/presets/bun/runtime/bun.mjs]\n\nerror: script \"build\" exited with code 1 node --version\nv22.2.0\n```",[3114,3115],{"name":3037,"color":3038},{"name":3116,"color":3117},"nitro","bfd4f2",29920,"Encountering RollupError in Nuxt 3.14.159 Build with Nitro 2.10.4 and Bun Preset","2024-11-19T16:47:59Z","https://github.com/nuxt/nuxt/issues/29920",0.6593704,{"description":3124,"labels":3125,"number":3129,"owner":3024,"repository":3024,"state":3026,"title":3130,"updated_at":3131,"url":3132,"score":3133},"### Environment\n\n------------------------------\r\n- Operating System: `Windows_NT`\r\n- Node Version: `v18.12.0`\r\n- Nuxt Version: `3.3.1`\r\n- Nitro Version: `2.3.1`\r\n- Package Manager: `npm@8.19.2`\r\n- Builder: `vite`\r\n- User Config: `typescript`, `app`, `css`, `modules`, `build`, `vite`\r\n- Runtime Modules: `@pinia/nuxt@0.4.7`, `@kevinmarrec/nuxt-pwa@0.11.1`\r\n- Build Modules: `-`\r\n------------------------------\n\n### Reproduction\n\n[Reproduction](https://codesandbox.io/p/github/nuxt/starter/csb-2twsl5/draft/zen-bartik?file=%2Fnuxt.config.ts&selection=%5B%7B%22endColumn%22%3A33%2C%22endLineNumber%22%3A6%2C%22startColumn%22%3A33%2C%22startLineNumber%22%3A6%7D%5D&workspace=%257B%2522activeFileId%2522%253A%2522cl7rh39as0003lngt67wg399j%2522%252C%2522openFiles%2522%253A%255B%2522%252Fpackage.json%2522%252C%2522%252Fnuxt.config.ts%2522%255D%252C%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522gitSidebarPanel%2522%253A%2522COMMIT%2522%252C%2522spaces%2522%253A%257B%2522clfisk5p6027j356kiw6gw1b7%2522%253A%257B%2522devtools%2522%253A%255B%255D%252C%2522key%2522%253A%2522clfisk5p6027j356kiw6gw1b7%2522%252C%2522name%2522%253A%2522Terminal%2522%257D%252C%2522clfit1u9m0613356kmdtimru8%2522%253A%257B%2522key%2522%253A%2522clfit1u9m0613356kmdtimru8%2522%252C%2522devtools%2522%253A%255B%257B%2522type%2522%253A%2522PREVIEW%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522port%2522%253A3000%252C%2522key%2522%253A%2522clfit6mdz00su356kcdkz3wit%2522%252C%2522isMinimized%2522%253Afalse%257D%252C%257B%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522key%2522%253A%2522clfit6k2z00nk356k3n2ofyg6%2522%252C%2522isMinimized%2522%253Afalse%257D%255D%252C%2522name%2522%253A%2522build%2522%257D%257D%252C%2522currentSpace%2522%253A%2522clfit1u9m0613356kmdtimru8%2522%252C%2522spacesOrder%2522%253A%255B%2522clfisk5p6027j356kiw6gw1b7%2522%252C%2522clfit1u9m0613356kmdtimru8%2522%255D%252C%2522hideCodeEditor%2522%253Afalse%257D)\r\n\r\nnuxt.config.ts\r\n```\r\nexport default defineNuxtConfig({\r\n css: [\"vuetify/lib/styles/main.sass\"],\r\n build: {\r\n transpile: [\"vuetify\"],\r\n },\r\n});\r\n```\r\n\r\nplugins/vuetify.ts\r\n```\r\nimport { createVuetify } from 'vuetify';\r\nimport * as components from 'vuetify/components';\r\nimport * as directives from 'vuetify/directives';\r\n\r\nimport { VDataTable } from 'vuetify/labs/VDataTable';\r\n\r\nexport default defineNuxtPlugin((nuxtApp) => {\r\n const cookieTheme = useCookieTheme();\r\n\r\n const vuetify = createVuetify({\r\n components: {\r\n ...components,\r\n VDataTable,\r\n },\r\n directives,\r\n theme: {\r\n defaultTheme: cookieTheme.value && cookieTheme.value !== 'system' ? cookieTheme.value : 'light',\r\n themes: {\r\n light: {\r\n dark: false,\r\n colors: {\r\n primary: '#4caf50',\r\n secondary: '#4caf50',\r\n background: '#FFFFFF',\r\n surface: '#FFFFFF',\r\n 'primary-darken-1': '#3700B3',\r\n 'secondary-darken-1': '#018786',\r\n error: '#f55a4e',\r\n info: '#00d3ee',\r\n success: '#5cb860',\r\n warning: '#ffa21a',\r\n },\r\n },\r\n },\r\n },\r\n });\r\n\r\n nuxtApp.vueApp.use(vuetify);\r\n});\r\n```\n\n### Describe the bug\n\nVuetify ^3.1 + Nuxt 3.2.3, 3.3.1 build failed\r\n\r\n\r\n\n\n### Additional context\n\nThis temporary fix this issue (not works with nuxt@3.3.1)\r\n```\r\nnpm i -D nuxt@3.2.3 @nuxt/kit@3.0.0 @nuxt/vite-builder@3.0.0\r\n```\n\n### Logs\n\n```shell-script\n√ Server built in 11703ms 00:39:13 \r\n√ Generated public .output/public nitro 00:39:13 \r\ni Building Nitro Server (preset: node-server) nitro 00:39:13 \r\n\r\n ERROR RollupError: Could not resolve \"./_nuxt/VContainer-styles.a03b508f.mjs\" from \".nuxt/dist/server/styles.mjs\" nitro 00:39:25\r\n\r\n\r\nundefined\r\n\r\n\r\n ERROR Could not resolve \"./_nuxt/VContainer-styles.a03b508f.mjs\" from \".nuxt/dist/server/styles.mjs\" 00:39:25 \r\n\r\n at error (/C:/Users/.../IdeaProjects/nuxt3-vuetify3-dashboard/node_modules/nitropack/node_modules/rollup/dist/es/shared/node-entry.js:2125:30)\r\n at ModuleLoader.handleInvalidResolvedId (/C:/Users/.../IdeaProjects/nuxt3-vuetify3-dashboard/node_modules/nitropack/node_modules/rollup/dist/es/shared/node-entry.js:23776:24)\r\n at ModuleLoader.resolveDynamicImport (/C:/Users/.../IdeaProjects/nuxt3-vuetify3-dashboard/node_modules/nitropack/node_modules/rollup/dist/es/shared/node-entry.js:23834:58)\r\n at async /C:/Users/.../IdeaProjects/nuxt3-vuetify3-dashboard/node_modules/nitropack/node_modules/rollup/dist/es/shared/node-entry.js:23723:32\n```\n",[3126,3127,3128],{"name":3034,"color":3035},{"name":3082,"color":3083},{"name":3037,"color":3038},19850,"RollupError in vite 4 (nuxt 3.2.3+) and vuetify","2024-05-24T19:51:55Z","https://github.com/nuxt/nuxt/issues/19850",0.66098344,["Reactive",3135],{},["Set"],["ShallowReactive",3138],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f1L8hRJZkM-EWVtePmNhWHl6sjoexOcz6hC14G01oe0U":-1},"/nuxt/icon/345"]