\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",[2022,2025,2028,2031,2034],{"name":2023,"color":2024},"good first issue","fbca04",{"name":2026,"color":2027},"3.x","29bc7f",{"name":2029,"color":2030},"workaround available","11376d",{"name":2032,"color":2033},"bug","d73a4a",{"name":2035,"color":2036},"🔨 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":2043,"labels":2044,"number":2048,"owner":1991,"repository":1991,"state":2002,"title":2049,"updated_at":2050,"url":2051,"score":2052},"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>",[2045],{"name":2046,"color":2047},"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":2054,"number":2059,"owner":1991,"repository":1991,"state":2002,"title":2060,"updated_at":2061,"url":2062,"score":2063},[2055,2056],{"name":2026,"color":2027},{"name":2057,"color":2058},"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":2065,"number":2067,"owner":1991,"repository":1991,"state":2002,"title":2068,"updated_at":2069,"url":2070,"score":2071},[2066],{"name":2046,"color":2047},6214,"Cannot read property 'destroy' of null","2023-01-18T20:44:02Z","https://github.com/nuxt/nuxt/issues/6214",0.74879646,{"labels":2073,"number":2075,"owner":1991,"repository":1991,"state":2002,"title":2068,"updated_at":2076,"url":2077,"score":2078},[2074],{"name":2046,"color":2047},6334,"2023-01-18T21:49:10Z","https://github.com/nuxt/nuxt/issues/6334",0.74949384,{"description":2080,"labels":2081,"number":2086,"owner":1991,"repository":1991,"state":2002,"title":2087,"updated_at":2088,"url":2089,"score":2090},"### 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_",[2082,2083],{"name":2026,"color":2027},{"name":2084,"color":2085},"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",2092],{},["Set"],["ShallowReactive",2095],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"X6Eh3nc_HC74ZvfUjtDKCuxjcuX6y5CKJ3CyXxceSrU":-1},"/nuxt/scripts/74"]