\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",[3192,3195,3198,3201,3204],{"name":3193,"color":3194},"good first issue","fbca04",{"name":3196,"color":3197},"3.x","29bc7f",{"name":3199,"color":3200},"workaround available","11376d",{"name":3202,"color":3203},"bug","d73a4a",{"name":3205,"color":3206},"🔨 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":3168,"labels":3213,"number":3218,"owner":3160,"repository":3160,"state":3172,"title":3219,"updated_at":3220,"url":3221,"score":3222},[3214,3215],{"name":3196,"color":3197},{"name":3216,"color":3217},"experiment","8CD9CD",11729,"experiment provide/inject with @vue/apollo","2023-01-19T15:43:22Z","https://github.com/nuxt/nuxt/issues/11729",0.743156,{"description":3224,"labels":3225,"number":3234,"owner":3160,"repository":3235,"state":3172,"title":3236,"updated_at":3237,"url":3238,"score":3239},"### 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_",[3226,3228,3231],{"name":3154,"color":3227},"a2eeef",{"name":3229,"color":3230},"v3","49DCB8",{"name":3232,"color":3233},"triage","ffffff",3772,"ui","Nuxt UI - Responsive Model/Drawer","2025-04-02T09:22:08Z","https://github.com/nuxt/ui/issues/3772",0.74511707,{"labels":3241,"number":3245,"owner":3160,"repository":3160,"state":3172,"title":3246,"updated_at":3247,"url":3248,"score":3249},[3242],{"name":3243,"color":3244},"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":3251,"labels":3252,"number":3254,"owner":3160,"repository":3160,"state":3172,"title":3255,"updated_at":3256,"url":3257,"score":3258},"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>",[3253],{"name":3243,"color":3244},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":3260,"number":3262,"owner":3160,"repository":3160,"state":3172,"title":3246,"updated_at":3263,"url":3264,"score":3265},[3261],{"name":3243,"color":3244},6214,"2023-01-18T20:44:02Z","https://github.com/nuxt/nuxt/issues/6214",0.75345415,["Reactive",3267],{},["Set"],["ShallowReactive",3270],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fB2rWshoO624hkfwfuvJIL8pfXIiuMn5oeePOv2rezpw":-1},"/nuxt/nuxt.com/74"]