` This has been working up until the release of 3.9.2: https://github.com/nuxt/nuxt/releases/tag/v3.9.2\n\nSomeServerComponentWithSlot.server.vue:\n```html\n\u003Ctemplate>\n \u003Cdiv>\n \u003Ch1>HELLO FROM SERVER\u003C/h1>\n \u003Cslot />\n \u003C/div>\n\u003C/template>\n```\n\napp.vue:\n```\n\u003Ctemplate>\n \u003Cdiv>\n \u003CSomeServerComponentWithSlot>\n \u003Cp>Hi from the slot!\u003C/p>\n \u003C/SomeServerComponentWithSlot>\n \u003C/div>\n\u003C/template>\n```\n\n```\n❯ npm run build\n\n> build\n> nuxt build\n\nNuxt 3.13.2 with Nitro 2.9.7 17:39:06\nℹ Compiled plugins/server.mjs in 724.52ms 17:39:15\nℹ Compiled plugins/client.mjs in 841.95ms 17:39:15\nℹ Compiled types/plugins.d.ts in 843.21ms 17:39:15\nℹ Building client... 17:39:18\nℹ vite v5.4.8 building for production... 17:39:18\nℹ ✓ 117 modules transformed. 17:39:22\nℹ .nuxt/dist/client/manifest.json 1.20 kB │ gzip: 0.31 kB 17:39:24\nℹ .nuxt/dist/client/_nuxt/error-500.B11Ibp8J.css 1.88 kB │ gzip: 0.72 kB 17:39:24\nℹ .nuxt/dist/client/_nuxt/error-404.ygbHJO5Q.css 3.56 kB │ gzip: 1.11 kB 17:39:24\nℹ .nuxt/dist/client/_nuxt/C_GX9_hV.js 0.38 kB │ gzip: 0.26 kB 17:39:24\nℹ .nuxt/dist/client/_nuxt/B8I165mB.js 3.41 kB │ gzip: 1.54 kB 17:39:24\nℹ .nuxt/dist/client/_nuxt/C5XsKPLf.js 9.27 kB │ gzip: 3.73 kB 17:39:24\nℹ .nuxt/dist/client/_nuxt/BdW2tdLc.js 141.17 kB │ gzip: 53.67 kB 17:39:24\nℹ ✓ built in 5.74s 17:39:24\n✔ Client built in 5779ms 17:39:24\nℹ Building server... 17:39:24\nℹ vite v5.4.8 building SSR bundle for production... 17:39:24\nℹ ✓ 54 modules transformed. 17:39:25\n\n ERROR x Build failed in 1.72s 17:39:25\n\n\n**[17:39:25] ERROR Nuxt Build Error: [vite:load-fallback] Could not load /home/projects/gqairmgblw.github/.nuxt/components-chunk (imported by node_modules/nuxt/dist/app/components/nuxt-teleport-island-component.js): ENOENT: no such file or directory, open '/home/projects/gqairmgblw.github/.nuxt/components-chunk'\n\n ENOENT: no such file or directory, open '.nuxt/components-chunk'**\n\n\n~/projects/gqairmgblw.github 21s\n```\n\n### Additional context\n\nIf works fine if the server component doesn't have a slot. It also doesn't matter if you provide slot content or not. The pure existence of the slot results in a Nuxt Build Error.\n\n### Logs\n\n_No response_",[2919,2920,2923],{"name":2895,"color":2896},{"name":2921,"color":2922},"server components","839413",{"name":2924,"color":2925},"possible regression","B90A42",29354,"Server Component (.server) and NuxtIsland with Slot results in Nuxt Build Error (SSR) - broken since nuxt@3.9.2","2025-01-25T15:38:57Z","https://github.com/nuxt/nuxt/issues/29354",0.6343983,{"labels":2932,"number":2939,"owner":2867,"repository":2867,"state":2868,"title":2940,"updated_at":2941,"url":2942,"score":2943},[2933,2934,2935,2938],{"name":2877,"color":2878},{"name":2880,"color":2881},{"name":2936,"color":2937},"vite","3574D1",{"name":2883,"color":2884},13642,"Bug: `throwError` on SSR is giving different DX","2023-01-19T17:02:42Z","https://github.com/nuxt/nuxt/issues/13642",0.63656473,{"description":2945,"labels":2946,"number":2953,"owner":2867,"repository":2867,"state":2868,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Environment\n\n------------------------------\n- Operating System: Linux\n- Node Version: v20.15.1\n- Nuxt Version: 3.13.2\n- CLI Version: 3.13.2\n- Nitro Version: 2.9.7\n- Package Manager: npm@10.7.0\n- Builder: -\n- User Config: ssr, devtools, build, vite, vue, hooks, css, components, runtimeConfig, router, ignore, app, site, robots, routeRules, ogImage, schemaOrg, icon, postcss, nitro, modules, vitalizer, pwa, ui\n- Runtime Modules: @nuxt/ui@2.18.7, @nuxtjs/device@3.2.4, @vueuse/nuxt@11.1.0, @pinia/nuxt@0.5.5, @nuxtjs/seo@2.0.0-rc.18, @vite-pwa/nuxt@0.10.5, nuxt-vitalizer@0.10.0\n- Build Modules: -\n------------------------------\n\n### Reproduction\n\nNot sure how to provide a reproduction since the issue only appears once i build my app.\n\n### Describe the bug\n\nI need to render dynamic templates on the server. For this I have set `vue.runtimeCompiler: true` inside the nuxt config. I also have written a simple `RenderTemplate.vue` component that gets passed a template string and renders the appropriate content.\n\n```ts\n\u003Cscript setup lang=\"ts\">\n // Custom components we allow to render\n import {\n KlzAudio,\n // Tuncated full list...\n } from '#components';\n\n interface Props {\n template: string;\n // eslint-disable-next-line\n options?: any;\n }\n\n const props = withDefaults(defineProps\u003CProps>(), {\n options: {}\n });\n\n const compiledTemplate = computed(() => {\n return defineComponent({\n components: {\n KlzAudio,\n // Tuncated full list...\n },\n props: {\n options: {\n type: Object,\n default: () => ({})\n }\n },\n template: props.template\n });\n });\n\u003C/script>\n\n\u003Ctemplate>\n \u003Cdiv>\n \u003Ccomponent\n :is=\"compiledTemplate\"\n ref=\"compRef\"\n :options=\"props.options\"\n >\u003C/component>\n \u003C/div>\n\u003C/template>\n```\n\nThis works just fine in development mode or when I build using `ssr: false`. In development I have no issues also with `ssr: true` everything works as expected and If I inspect the source code of the pages where I use the `RenderTemplate` component I also see the rendered HTML just fine. But when I build my app using `npx nuxi build --preset=cloudflare_pages` and try to run the server I get:\n\n```\nOn-the-fly template compilation is not supported in the ESM build of @vue/server-renderer. All templates must be pre-compiled into render functions.\n```\n\nUPDATE: This only happens if i use the `cloudflare_pages` preset with `node-server` it works just fine.\n\nI have only found one other issue that mentioned this exact error: https://github.com/nuxt/nuxt/issues/13358\n\nSadly the fix suggested does not work in my scenario since I render more complex components and would get other errors related to not being in the nuxt context using `renderString()`.\n\nI also found that using `render` instead of `template` together with `compile` resolves the \"on-the-fly\" error but when looking at the source of my page the dynamically rendered content is not part of the HTML rendered on the server which is a big issue.\n\nResolves initial error but does not render HTML content on the server:\n```ts\nconst compiledTemplate = computed(() => {\n return defineComponent({\n components: {\n KlzAudio,\n // Truncated full list...\n },\n props: {\n options: {\n type: Object,\n default: () => ({})\n }\n },\n render: compile(props.template)\n });\n});\n```\n\nHow can I fix this issues? Why is it working in dev but not when building the app? \n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2947,2948,2950],{"name":2895,"color":2896},{"name":2949,"color":2884},"needs reproduction",{"name":2951,"color":2952},"closed-by-bot","ededed",29769,"On-the-fly template compilation is not supported in the ESM build of @vue/server-renderer.","2024-11-11T02:00:16Z","https://github.com/nuxt/nuxt/issues/29769",0.6386898,{"labels":2959,"number":2966,"owner":2867,"repository":2867,"state":2868,"title":2967,"updated_at":2968,"url":2969,"score":2970},[2960,2961,2962,2963],{"name":2877,"color":2878},{"name":2880,"color":2881},{"name":2936,"color":2937},{"name":2964,"color":2965},"❗ p4-important","D93F0B",14847,"RC 10 breaks with vuetify and \"ssr:false\"","2023-01-19T17:41:08Z","https://github.com/nuxt/nuxt/issues/14847",0.63951916,{"description":2972,"labels":2973,"number":2975,"owner":2867,"repository":2867,"state":2868,"title":2976,"updated_at":2977,"url":2978,"score":2979},"### Environment\n\n- Operating System: Linux\r\n- Node Version: v20.9.0\r\n- Nuxt Version: 3.12.2\r\n- CLI Version: 3.12.0\r\n- Nitro Version: 2.9.6\r\n- Package Manager: yarn@1.22.19\r\n- Builder: -\r\n- User Config: devtools, components\r\n- Runtime Modules: -\r\n- Build Modules: -\n\n### Reproduction\n\nhttps://codesandbox.io/p/devbox/nuxt-3-bug-vl98j5\n\n### Describe the bug\n\nThe problem only occurs with the production build.\r\nIf a component is imported dynamically and uses components common to its sub-components (e.g. a composable) and this sub-component is used elsewhere in the code, then SSR rendering of the component no longer occurs.\r\nIn my example in dev mode, the final rendering of the page is :\r\n```\r\nHello\r\nTest : foo\r\nTest Child : foo\r\nTest Child 2\r\nTest Child 2 Child : foo\r\nTest Child 2\r\nTest Child 2 Child : foo\r\n```\r\nUnfortunately, in prod mode, the ssr rendering is as follows : \r\n```\r\nHello\r\nTest : foo\r\nTest Child : foo\r\nTest Child 2\r\nTest Child 2 Child : foo\r\n```\r\nAs the client-side setup also executes for hydration, the rendering updates correctly and everything is displayed, but there is a problem with the SSR rendering.\r\nThere are no errors during the nuxt build or when generating the page on the SSR side.\r\nI think the problem must come from rollup because if you look in the file `.output/server/chunks/BaseTestChild2-WlFZNhyr.mjs` there is an export of several elements.\r\n```\r\nconst BaseTestChild2 = /* @__PURE__ */ Object.freeze({\r\n __proto__: null,\r\n default: _sfc_main\r\n});\r\n\r\nexport { BaseTestChild2 as B, _sfc_main as _, useFoo as u };\r\n```\r\nIf we compare it to a normal component (`.output/server/chunks/BaseTest-DrvCz1q7.mjs`), the export is different.\r\n```\r\nexport { _sfc_main as default };\r\n```\r\nFor me, the problem comes from the fact that it creates an object with `default: _sfc_main` before exporting it.\r\nWhen we look at the use of these files in `.output/server/server.mjs` there is a difference.\r\n```\r\nsetup(__props) {\r\n const BaseTest = defineAsyncComponent(\r\n () => import('./BaseTest-DrvCz1q7.mjs')\r\n );\r\n const BaseTestChild2 = defineAsyncComponent(\r\n () => import('./BaseTestChild2-WlFZNhyr.mjs').then(function(n) {\r\n return n.B;\r\n })\r\n );\r\n}\r\n```\r\nFor my part, when I remove the creation of this object to export in the same way as `.output/server/chunks/BaseTest-DrvCz1q7.mjs`, it works.\r\nOr if I add `n.B.default` to the `import('./BaseTestChild2-WlFZNhyr.mjs').then(function(n) {`, that works too.\n\n### Additional context\n\nTo reproduce, simply `yarn build` then `yarn preview` in my codesandbox example.\r\nYou can look directly at the existing `.output` that contains the problem.\r\nI don't know if this is the right place for this ticket or if I should make a ticket on the rollup side.\n\n### Logs\n\n_No response_",[2974],{"name":2895,"color":2896},27836,"Dynamic component SSR rendering problem","2024-08-12T21:15:06Z","https://github.com/nuxt/nuxt/issues/27836",0.63957256,{"labels":2981,"number":2984,"owner":2867,"repository":2867,"state":2868,"title":2985,"updated_at":2986,"url":2987,"score":2988},[2982,2983],{"name":2877,"color":2878},{"name":2880,"color":2881},12075,"Server Side Rendering Error - Windows OS","2023-01-19T15:54:28Z","https://github.com/nuxt/nuxt/issues/12075",0.63985765,["Reactive",2990],{},["Set"],["ShallowReactive",2993],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fXZmP48yU3qOTQC3eHwD4Kwd9PzKo9ehrdiCYUM3Kn_Q":-1},"/nuxt/nuxt/13117"]