\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```",[3204],{"name":3159,"color":3160},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":3211,"labels":3212,"number":3217,"owner":3162,"repository":3162,"state":3173,"title":3218,"updated_at":3219,"url":3220,"score":3221},"### 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```",[3213,3214],{"name":3159,"color":3160},{"name":3215,"color":3216},"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":3223,"labels":3224,"number":3231,"owner":3162,"repository":3162,"state":3173,"title":3232,"updated_at":3233,"url":3234,"score":3235},"### 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_",[3225,3226,3229,3230],{"name":3181,"color":3182},{"name":3227,"color":3228},"workaround available","11376d",{"name":3159,"color":3160},{"name":3194,"color":3195},23930,"`addImports` does not support `.` in from","2023-10-28T11:57:04Z","https://github.com/nuxt/nuxt/issues/23930",0.6530987,{"description":3237,"labels":3238,"number":3244,"owner":3162,"repository":3162,"state":3173,"title":3245,"updated_at":3246,"url":3247,"score":3248},"### 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```",[3239,3240,3241],{"name":3159,"color":3160},{"name":3215,"color":3216},{"name":3242,"color":3243},"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":3250,"number":3251,"owner":3162,"repository":3162,"state":3173,"title":3252,"updated_at":3253,"url":3254,"score":3255},[],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":3257,"labels":3258,"number":3263,"owner":3162,"repository":3162,"state":3173,"title":3264,"updated_at":3265,"url":3266,"score":3267},"### 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```",[3259,3260],{"name":3159,"color":3160},{"name":3261,"color":3262},"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,["Reactive",3269],{},["Set"],["ShallowReactive",3272],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f1L8hRJZkM-EWVtePmNhWHl6sjoexOcz6hC14G01oe0U":-1},"/nuxt/icon/345"]