\n\n3) Navigate to `pages/index.vue`, modify the `console.log()` and save\n\n### Describe the bug\n\nThe previous [issue](https://github.com/nuxt/nuxt/issues/25214) was closed, but the error remains even in the latest Nuxt version.\n\nThe error will disappear if you add `lazy:true` option\n\n```\nconst { data } = await useFetch('https://jsonplaceholder.typicode.com/todos/1', {\n lazy: true\n})\n```\n\nAs you can see, both `app.vue` `layouts/default.vue` are wrapped with `divs` as it was suggested in the previous issue but we still get the bug.\n\nIs adding `lazy` option is the best workaround as for now?\n\n\u003Cimg width=\"500\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ca5929e7-f84b-4d0f-a57b-e1cf38c34813\" />\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\nvirtual:nuxt:/home/gaisinskii/nuxt3-parent-node-null/.nuxt/routes.mjs:16 [Vue warn]: Unhandled error during execution of component update \n at \u003CRouterView name=undefined route=undefined > \n at \u003CNuxtPage> \n at \u003CDefault ref=Ref\u003C Proxy(Object)聽{鈥 > > \n at \u003CAsyncComponentWrapper ref=Ref\u003C Proxy(Object)聽{鈥 > > \n at \u003CLayoutLoader key=\"default\" layoutProps= {ref: RefImpl} name=\"default\" > \n at \u003CNuxtLayoutProvider layoutProps= {ref: RefImpl} key=\"default\" name=\"default\" ... > \n at \u003CNuxtLayout> \n at \u003CApp key=4 > \n at \u003CNuxtRoot>\nwarn$1 @ runtime-core.esm-bundler.js:51\nlogError @ runtime-core.esm-bundler.js:263\nhandleError @ runtime-core.esm-bundler.js:255\ncallWithErrorHandling @ runtime-core.esm-bundler.js:201\nflushJobs @ runtime-core.esm-bundler.js:408\nPromise.then\nqueueFlush @ runtime-core.esm-bundler.js:322\nqueueJob @ runtime-core.esm-bundler.js:317\neffect2.scheduler @ runtime-core.esm-bundler.js:5448\ntrigger @ reactivity.esm-bundler.js:253\nendBatch @ reactivity.esm-bundler.js:311\nnotify @ reactivity.esm-bundler.js:597\ntrigger @ reactivity.esm-bundler.js:571\nset value @ reactivity.esm-bundler.js:1448\nfinalizeNavigation @ vue-router.mjs:3498\n(anonymous) @ vue-router.mjs:3363\nPromise.then\npushWithRedirect @ vue-router.mjs:3330\npush @ vue-router.mjs:3255\nreplace @ vue-router.mjs:3258\naddRoutes @ virtual:nuxt:/home/gaisinskii/nuxt3-parent-node-null/.nuxt/routes.mjs:16\n(anonymous) @ virtual:nuxt:/home/gaisinskii/nuxt3-parent-node-null/.nuxt/routes.mjs:21\n(anonymous) @ client:34\n(anonymous) @ client:208\n(anonymous) @ client:183\nqueueUpdate @ client:183\nawait in queueUpdate\n(anonymous) @ client:884\nhandleMessage @ client:882\nonMessage @ client:299\n(anonymous) @ client:429\ndispatchEvent @ .localservice@runtime.5a421e5b.js:26\n_handleMessage @ .localservice@runtime.5a421e5b.js:26\n_0x3963e2 @ .localservice@runtime.5a421e5b.js:26Understand this warningAI\nruntime-dom.esm-bundler.js:51 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')\n at parentNode (runtime-dom.esm-bundler.js:51:30)\n at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5410:11)\n at ReactiveEffect.run (reactivity.esm-bundler.js:225:19)\n at ReactiveEffect.runIfDirty (reactivity.esm-bundler.js:263:12)\n at callWithErrorHandling (runtime-core.esm-bundler.js:199:33)\n at flushJobs (runtime-core.esm-bundler.js:408:9)\n```",[1984,1987,1990,1993],{"name":1985,"color":1986},"dx","C39D69",{"name":1988,"color":1989},"bug","d73a4a",{"name":1991,"color":1992},"vite","3574D1",{"name":1994,"color":1995},"馃敤 p3-minor","FBCA04",31493,"nuxt","open","TypeError: Cannot read properties of null (reading 'parentNode') with useFetch","2025-03-21T17:04:23Z","https://github.com/nuxt/nuxt/issues/31493",0.6171449,{"description":2004,"labels":2005,"number":2016,"owner":1997,"repository":1997,"state":2017,"title":2018,"updated_at":2019,"url":2020,"score":2021},"### Environment\r\n\r\nWorking directory: /home/projects/nuxt-starter-f4vru5\r\nNuxt project info:\r\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v18.18.0\r\n- Nuxt Version: 3.10.1\r\n- CLI Version: 3.10.0\r\n- Nitro Version: 2.8.1\r\n- Package Manager: npm@10.2.3\r\n- Builder: -\r\n- User Config: devtools\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/nuxt-starter-f4vru5?file=pages%2Findex.vue\r\n\r\n### Describe the bug\r\n\r\nThe error `TypeError: Cannot read properties of null (reading 'parentNode')` appears in the console when navigating between pages if `\u003CNuxtPage :keepalive=\"{ max: 5 }\" />` and NuxtLayout are used.\r\nSteps:\r\n\r\n1. Open dev tools console\r\n2. Navigate between pages, e.g. Index -> Node 1 -> Index\r\n3. Check the console for errors\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n```shell-script\r\nchunk-JSACULTC.js?v=017ed9e0:9626 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')\r\n at parentNode (chunk-JSACULTC.js?v=017ed9e0:9626:30)\r\n at ReactiveEffect.componentUpdateFn [as fn] (chunk-JSACULTC.js?v=017ed9e0:7537:11)\r\n at ReactiveEffect.run (chunk-JSACULTC.js?v=017ed9e0:430:19)\r\n at instance.update (chunk-JSACULTC.js?v=017ed9e0:7577:17)\r\n at callWithErrorHandling (chunk-JSACULTC.js?v=017ed9e0:1651:32)\r\n at flushJobs (chunk-JSACULTC.js?v=017ed9e0:1858:9)\r\n```\r\n",[2006,2009,2010,2013],{"name":2007,"color":2008},"3.x","29bc7f",{"name":1988,"color":1989},{"name":2011,"color":2012},"upstream","E8A36D",{"name":2014,"color":2015},"suspense","C70109",25751,"closed","TypeError: Cannot read properties of null (reading 'parentNode') when using keepAlive","2024-02-26T12:18:33Z","https://github.com/nuxt/nuxt/issues/25751",0.54668593,{"labels":2023,"number":2033,"owner":1997,"repository":1997,"state":2017,"title":2034,"updated_at":2035,"url":2036,"score":2037},[2024,2025,2028,2029,2030],{"name":2007,"color":2008},{"name":2026,"color":2027},"workaround available","11376d",{"name":1988,"color":1989},{"name":2011,"color":2012},{"name":2031,"color":2032},"upstream-bug","B60205",13309,"TypeError: Cannot read properties of null (reading 'parentNode')","2025-02-17T17:13:12Z","https://github.com/nuxt/nuxt/issues/13309",0.57215995,{"description":2039,"labels":2040,"number":2045,"owner":1997,"repository":1997,"state":2017,"title":2034,"updated_at":2046,"url":2047,"score":2048},"### Environment\n\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v16.20.0\r\n- Nuxt Version: 3.6.5\r\n- Nitro Version: 2.5.2\r\n- Package Manager: npm@9.4.2\r\n- Builder: vite\r\n- User Config: -\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-nmhzwq-oy4bww\n\n### Describe the bug\n\nGetting `TypeError: Cannot read properties of null (reading 'parentNode')`, `Uncaught (in promise) TypeError: Cannot read properties of null (reading 'exposed')`, `Unhandled error during execution of scheduler flush.` when using `navigateTo()` after the API responds with an error in SPA, refreshing the page (`/mock-category/mock-brand/mock-slug`) loads the page fine without any errors.\n\n### Additional context\n\nSPA page load can be done by clicking the `Link` element in `~/pages/index.vue`, SSR page load can be done by opening the page by changing the URL to `/mock-category/mock-brand/mock-slug` or anything similar.\n\n### Logs\n\n_No response_",[2041,2042],{"name":2007,"color":2008},{"name":2043,"color":2044},"pending triage","E99695",22353,"2023-07-27T15:50:54Z","https://github.com/nuxt/nuxt/issues/22353",0.5825345,{"description":2050,"labels":2051,"number":2054,"owner":1997,"repository":1997,"state":2017,"title":2034,"updated_at":2055,"url":2056,"score":2057},"### Environment\r\n\r\n\"vue\": \"3.4.8\"\r\n\"nuxt\": \"3.9.1\"\r\n\r\n### Reproduction\r\n\r\ni am getting error when reload the page on ssr mode. When i go back to this page in SPA mode i dont see this error\r\n\r\n### Describe the bug\r\n\r\n\r\n### Additional context\r\n\r\nAfter upgrade from nuxt 3.0.0 to 3.8.0, 3.9.0,3.10.0 i am getting this error. Triied to chaged version of vue from 3.3.8 to 3.4.8, 3.4.13 and still get an error. Tried to wrap NuxtLayout and NuxtPage into div , didnt help.Tried to remove NuxtPageIndicator also didnt help.\r\n\r\n### Logs\r\n\r\n```shell-script\r\nTypeError: Cannot read properties of null (reading 'parentNode') at parentNode (entry.dOCZ9qXz.js:28:687) at ReactiveEffect.he [as fn] (entry.dOCZ9qXz.js:20:54324) at ReactiveEffect.run (entry.dOCZ9qXz.js:9:1851) at L.$.update (entry.dOCZ9qXz.js:20:55334) at callWithErrorHandling (entry.dOCZ9qXz.js:20:2166) at flushJobs (entry.dOCZ9qXz.js:20:4841) at flushJobs (entry.dOCZ9qXz.js:20:5014) logError @ entry.dOCZ9qXz.js:20\r\n```\r\n",[2052,2053],{"name":2007,"color":2008},{"name":2043,"color":2044},25722,"2024-03-04T14:32:15Z","https://github.com/nuxt/nuxt/issues/25722",0.5878761,{"description":2059,"labels":2060,"number":2063,"owner":1997,"repository":1997,"state":2017,"title":2034,"updated_at":2064,"url":2065,"score":2066},"### Environment\n\n- Operating System: Linux\r\n- Node Version: v16.17.0\r\n- Nuxt Version: 3.6.1\r\n- Nitro Version: 2.5.1\r\n- Package Manager: yarn@1.22.19\r\n- Builder: vite\r\n- User Config: devtools, modules, app, imports\r\n- Runtime Modules: @pinia/nuxt@0.4.11\r\n- Build Modules: -\n\n### Reproduction\n\n1. Open https://vs3g68-3000.csb.app/foo\r\n2. click on `Bar Layout` link\n\n### Describe the bug\n\nLayout loading fails\n\n### Additional context\n\nSee also #13309 (possibly not related)\n\n### Logs\n\n_No response_",[2061,2062],{"name":2007,"color":2008},{"name":2043,"color":2044},21841,"2024-01-01T22:49:54Z","https://github.com/nuxt/nuxt/issues/21841",0.5932138,{"description":2068,"labels":2069,"number":2073,"owner":1997,"repository":1997,"state":2017,"title":2074,"updated_at":2075,"url":2076,"score":2077},"### Environment\r\n\r\n- Operating System: `Darwin`\r\n- Node Version: `v20.10.0`\r\n- Nuxt Version: `3.9.1`\r\n- CLI Version: `3.10.0`\r\n- Nitro Version: `2.8.1`\r\n- Package Manager: `yarn@1.22.21`\r\n- Builder: `-`\r\n- User Config: `devtools`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/github-ghhe2w?file=layouts%2Fdefault.vue\r\n\r\n### Describe the bug\r\n\r\nWhen I clicke the `NuxtLink` text锛宼he browser doesn't to display the pages, and the browser display console the error in the **Logs** section.\r\n\r\n\r\n### Logs\r\n```\r\n[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core . \r\n at \u003CRouterView name=undefined route=undefined > \r\n at \u003CNuxtPage> \r\n at \u003CApp key=3 > \r\n at \u003CNuxtRoot>\r\nwarn$1 @ chunk-FRWRVS7C.js?v=373e3ccb:1486\r\n\r\nchunk-FRWRVS7C.js?v=373e3ccb:9605 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')\r\n at parentNode (chunk-FRWRVS7C.js?v=373e3ccb:9605:30)\r\n at ReactiveEffect.componentUpdateFn [as fn] (chunk-FRWRVS7C.js?v=373e3ccb:7513:11)\r\n at ReactiveEffect.run (chunk-FRWRVS7C.js?v=373e3ccb:421:19)\r\n at instance.update (chunk-FRWRVS7C.js?v=373e3ccb:7553:17)\r\n at callWithErrorHandling (chunk-FRWRVS7C.js?v=373e3ccb:1634:32)\r\n at flushJobs (chunk-FRWRVS7C.js?v=373e3ccb:1841:9)\r\n```",[2070,2071,2072],{"name":2007,"color":2008},{"name":2026,"color":2027},{"name":2011,"color":2012},25179,"Cannot read properties of null (reading 'parentNode')","2024-07-27T19:16:14Z","https://github.com/nuxt/nuxt/issues/25179",0.5968651,{"description":2079,"labels":2080,"number":2083,"owner":1997,"repository":1997,"state":2017,"title":2034,"updated_at":2084,"url":2085,"score":2086},"### Environment\r\n\r\n- Operating System: `Darwin`\r\n- Node Version: `v16.18.0`\r\n- Nuxt Version: `3.0.0`\r\n- Nitro Version: `1.0.0`\r\n- Package Manager: `npm@8.19.2`\r\n- Builder: `vite`\r\n- User Config: `ssr`, `css`, `pages`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n\r\n\r\n### Reproduction\r\n\r\n`\r\n{\r\n name: 'withdraw',\r\n path: '/withdraw',\r\n component: () => import('~/pages/withdraw.vue'),\r\n children:[\r\n {\r\n\r\n name: 'withdraw-cash',\r\n path: 'cash',\r\n component: () => import('~/pages/withdraw/cash.vue')\r\n },\r\n {\r\n name: 'withdraw-record',\r\n path: 'record',\r\n component: () => import('~/pages/withdraw/record.vue')\r\n }\r\n ]\r\n}\r\n`\r\n### Describe the bug\r\n\r\nJump error between pages\r\n\r\nTypeError: Cannot read properties of null (reading 'parentNode')\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[2081,2082],{"name":2007,"color":2008},{"name":2043,"color":2044},12398,"2023-01-19T16:52:20Z","https://github.com/nuxt/nuxt/issues/12398",0.59821177,{"description":2088,"labels":2089,"number":2092,"owner":1997,"repository":1997,"state":2017,"title":2093,"updated_at":2094,"url":2095,"score":2096},"### Environment\r\n\r\nNode: v18.18.2\r\nOS: Windows 10\r\nNuxt: 3.0.0, 3.6.3, 3.7.1, 3.8.0, 3.8.2\r\n@storyblok/nuxt: 5.0.2, 5.7.4, 5.7.7, 5.7.9\r\nBrowser: Google Chrome\r\n\r\n### Reproduction\r\n\r\nhttps://github.com/webmaster-dexontechnology/my-problem/tree/master\r\nhttps://stackblitz.com/edit/nuxt-3-sdk-demo-fgf4wa?file=app.vue\r\n\r\n### Describe the bug\r\n\r\nWhen clicking quickly on NuxtLink multiple times, I receive the following error (this error occurs only on pages with Storyblok).\r\nI have tried to downgrade the version of Nuxt and Storyblok and fix other issues, but my problem has not been resolved.\r\n\r\nTypeError: Cannot read properties of null (reading 'parentNode')\r\nTypeError: Cannot read properties of null (reading 'subTree')\r\n\r\n\r\n\r\nhttps://github.com/nuxt/nuxt/assets/134662978/0263cbd2-0518-4d24-b547-c0ced29536c1\r\n\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_",[2090,2091],{"name":2007,"color":2008},{"name":2043,"color":2044},24549,"Nuxt/Storyblok - When clicking quickly on NuxtLink multiple times, i get error Cannot read properties of null (reading 'parentNode')","2023-12-01T07:55:23Z","https://github.com/nuxt/nuxt/issues/24549",0.59955734,{"description":2098,"labels":2099,"number":2102,"owner":1997,"repository":1997,"state":2017,"title":2034,"updated_at":2103,"url":2104,"score":2105},"### Environment\r\n\r\n- Operating System: Linux\r\n- Node Version: v18.17.1\r\n- Nuxt Version: 3.9.1\r\n- CLI Version: 3.10.0\r\n- Nitro Version: 2.8.1\r\n- Package Manager: yarn@1.22.19\r\n- Builder: -\r\n- User Config: devtools\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/~/github.com/zabavnikov/nuxt\r\nhttps://stackblitz.com/~/github.com/zabavnikov/nuxt-div (NuxtLayout is wrapped in a div)\r\n\r\n### Describe the bug\r\n\r\nAfter upgrading to the latest version of Nuxt and Vue, an error appeared - TypeError: Cannot read properties of null (reading 'parentNode').\r\n\r\nI noticed that on pages where NuxtLayout is wrapped in a div, this error doesn't occur and navigating to another page works fine.\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[2100,2101],{"name":2007,"color":2008},{"name":2043,"color":2044},25191,"2024-01-13T15:42:35Z","https://github.com/nuxt/nuxt/issues/25191",0.60058653,["Reactive",2107],{},["Set"],["ShallowReactive",2110],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"LBqv4chdR5d03W7QT81XW5zUiHcmg_8HGmPJQDFp8q4":-1},"/nuxt/nuxt/24641"]