\u003C/div>\r\n\u003C/template>\r\n```\r\n\r\nAdded to the Nuxt app via `addComponent` in a Nuxt module definition:\r\n\r\n```ts\r\naddComponent({\r\n name: 'JsComponent',\r\n export: 'JsComponent',\r\n filePath: resolve('./JsComponent.js'),\r\n})\r\n\r\naddComponent({\r\n name: 'VueComponent',\r\n filePath: resolve('./VueComponent.vue'),\r\n})\r\n```\r\n\r\nIf prefixed with Lazy:\r\n\r\n```vue\r\n\u003Ctemplate>\r\n \u003CLazyVueComponent>Hello\u003C/LazyVueComponent>\r\n \u003CLazyJsComponent>Hello\u003C/LazyJsComponent>\r\n\u003C/template>\r\n```\r\n\r\nThe .vue one works as expected, the .js one throws the following SSR error: `src.replace is not a function`.\r\n\r\nAfter dealing with this a bit, I found out that if the js component has no child, it doesn't throw any error:\r\n\r\n```vue\r\n\u003CLazyJsComponent>\u003C/LazyJsComponent>\r\n```\r\n\r\nBut even a single char or a comment will break things again. \r\n\r\n\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n[Vue warn]: Invalid vnode type when creating vnode: undefined.\r\n[nuxt] [request error] [unhandled] [500] src.replace is not a function\r\n```\n```\n",[2942,2945,2948,2951,2954],{"name":2943,"color":2944},"good first issue","fbca04",{"name":2946,"color":2947},"3.x","29bc7f",{"name":2949,"color":2950},"workaround available","11376d",{"name":2952,"color":2953},"bug","d73a4a",{"name":2955,"color":2956},"🔨 p3-minor","FBCA04",23768,"Module-added component throws 'src.replace is not a function' if prefixed with Lazy and is not a vue file","2024-01-31T09:08:04Z","https://github.com/nuxt/nuxt/issues/23768",0.74160653,{"description":2918,"labels":2963,"number":2968,"owner":2910,"repository":2910,"state":2922,"title":2969,"updated_at":2970,"url":2971,"score":2972},[2964,2965],{"name":2946,"color":2947},{"name":2966,"color":2967},"experiment","8CD9CD",11729,"experiment provide/inject with @vue/apollo","2023-01-19T15:43:22Z","https://github.com/nuxt/nuxt/issues/11729",0.743156,{"description":2974,"labels":2975,"number":2984,"owner":2910,"repository":2985,"state":2922,"title":2986,"updated_at":2987,"url":2988,"score":2989},"### Description\n\nHey guys, can we implement a responsive model with Nuxt UI. \n\nSimilar to the: Maybe fix the repeated content of the Dialog and Drawer. \nhttps://www.shadcn-vue.com/docs/components/drawer.html\n\n### Additional context\n\n_No response_",[2976,2978,2981],{"name":2904,"color":2977},"a2eeef",{"name":2979,"color":2980},"v3","49DCB8",{"name":2982,"color":2983},"triage","ffffff",3772,"ui","Nuxt UI - Responsive Model/Drawer","2025-04-02T09:22:08Z","https://github.com/nuxt/ui/issues/3772",0.74511707,{"labels":2991,"number":2995,"owner":2910,"repository":2910,"state":2922,"title":2996,"updated_at":2997,"url":2998,"score":2999},[2992],{"name":2993,"color":2994},"2.x","d4c5f9",6334,"Cannot read property 'destroy' of null","2023-01-18T21:49:10Z","https://github.com/nuxt/nuxt/issues/6334",0.7461369,{"description":3001,"labels":3002,"number":3004,"owner":2910,"repository":2910,"state":2922,"title":3005,"updated_at":3006,"url":3007,"score":3008},"How to add logic on root vue instance so I can handle page refresh?\r\n\r\nHow do I do this in nuxt SPA mode?\r\n```\r\nnew Vue({\r\n el: '#app',\r\n mounted() {\r\n // Get User Object from API\r\n },\r\n created() {\r\n // do something\r\n }\r\n \r\n})\r\n```\r\n\r\n\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This question is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1808\">#c1808\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[3003],{"name":2993,"color":2994},2039,"How to add logic on root vue instance mounted or created method so I can handle page refresh?","2023-01-18T15:43:02Z","https://github.com/nuxt/nuxt/issues/2039",0.7470267,{"labels":3010,"number":3012,"owner":2910,"repository":2910,"state":2922,"title":2996,"updated_at":3013,"url":3014,"score":3015},[3011],{"name":2993,"color":2994},6214,"2023-01-18T20:44:02Z","https://github.com/nuxt/nuxt/issues/6214",0.75345415,["Reactive",3017],{},["Set"],["ShallowReactive",3020],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fB2rWshoO624hkfwfuvJIL8pfXIiuMn5oeePOv2rezpw":-1},"/nuxt/nuxt.com/74"]