\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",[2023,2026,2029,2032,2035],{"name":2024,"color":2025},"good first issue","fbca04",{"name":2027,"color":2028},"3.x","29bc7f",{"name":2030,"color":2031},"workaround available","11376d",{"name":2033,"color":2034},"bug","d73a4a",{"name":2036,"color":2037},"🔨 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.7423642,{"description":2044,"labels":2045,"number":2049,"owner":1991,"repository":1991,"state":2003,"title":2050,"updated_at":2051,"url":2052,"score":2053},"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>",[2046],{"name":2047,"color":2048},"2.x","d4c5f9",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.74372315,{"description":1999,"labels":2055,"number":2060,"owner":1991,"repository":1991,"state":2003,"title":2061,"updated_at":2062,"url":2063,"score":2064},[2056,2057],{"name":2027,"color":2028},{"name":2058,"color":2059},"app","17512D",10920,"support for catchall routes (equivalent to `_.vue`)","2023-01-19T14:29:18Z","https://github.com/nuxt/nuxt/issues/10920",0.7483441,{"labels":2066,"number":2068,"owner":1991,"repository":1991,"state":2003,"title":2069,"updated_at":2070,"url":2071,"score":2072},[2067],{"name":2047,"color":2048},6214,"Cannot read property 'destroy' of null","2023-01-18T20:44:02Z","https://github.com/nuxt/nuxt/issues/6214",0.74879646,{"labels":2074,"number":2076,"owner":1991,"repository":1991,"state":2003,"title":2069,"updated_at":2077,"url":2078,"score":2079},[2075],{"name":2047,"color":2048},6334,"2023-01-18T21:49:10Z","https://github.com/nuxt/nuxt/issues/6334",0.74949384,{"description":2081,"labels":2082,"number":2087,"owner":1991,"repository":1991,"state":2003,"title":2088,"updated_at":2089,"url":2090,"score":2091},"### Environment\r\n\r\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v18.12.1\r\n- Nuxt Version: 3.5.0\r\n- Nitro Version: 2.4.0\r\n- Package Manager: npm@9.4.0\r\n- Builder: vite\r\n- User Config: app\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\r\n\r\n### Reproduction\r\n\r\n@danielroe had a hard time trying to reproduce but I managed to !\r\n\r\nSee here :\r\nhttps://stackblitz.com/edit/nuxt-starter-5614cq\r\n\r\nWhen you navigate through the Link displayed on the Home page, you can reproduce the error.\r\n\r\nTrying to reproduce, I found out that it surely has to do with a `\u003CModal>` component that is in the `\u003CHeader>` one, and is teleported to `app.vue` root. We've had this since 1 year with no issue, but with Nuxt 3.5 there is this error.\r\n\r\n### Describe the bug\r\n\r\nWith Nuxt 3.5 I'm starting to have these errors :\r\n\r\nWhen navigating (with `\u003CNuxtLink />` or `navigateTo`) from a page to another with another layout, I have this error with a blank page : \r\n\r\n```\r\nUncaught (in promise) DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.\r\n\r\nUncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')\r\n```\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[2083,2084],{"name":2027,"color":2028},{"name":2085,"color":2086},"pending triage","E99695",20917,"Nuxt 3.5 - Cannot read properties of null (reading 'parentNode') when navigate to a page with a different layout","2023-05-17T14:11:18Z","https://github.com/nuxt/nuxt/issues/20917",0.752642,["Reactive",2093],{},["Set"],["ShallowReactive",2096],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"B2rWshoO624hkfwfuvJIL8pfXIiuMn5oeePOv2rezpw":-1},"/nuxt/nuxt.com/74"]