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