\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```",[2865,2868,2871,2874],{"name":2866,"color":2867},"dx","C39D69",{"name":2869,"color":2870},"bug","d73a4a",{"name":2872,"color":2873},"vite","3574D1",{"name":2875,"color":2876},"🔨 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.68368894,{"description":2885,"labels":2886,"number":2887,"owner":2878,"repository":2888,"state":2889,"title":2890,"updated_at":2891,"url":2892,"score":2893},"",[],321,"test-utils","closed","Support for Nuxt v3","2023-12-02T00:13:09Z","https://github.com/nuxt/test-utils/issues/321",0.46170783,{"labels":2895,"number":2899,"owner":2878,"repository":2878,"state":2889,"title":2900,"updated_at":2901,"url":2902,"score":2903},[2896],{"name":2897,"color":2898},"3.x","29bc7f",14248,"Nuxt","2023-01-19T17:31:08Z","https://github.com/nuxt/nuxt/issues/14248",0.5737537,{"description":2885,"labels":2905,"number":2906,"owner":2878,"repository":2878,"state":2889,"title":2907,"updated_at":2908,"url":2909,"score":2910},[],24887,"mynuxt3","2023-12-24T19:04:22Z","https://github.com/nuxt/nuxt/issues/24887",0.6366037,{"description":2912,"labels":2913,"number":2920,"owner":2878,"repository":2878,"state":2889,"title":2921,"updated_at":2922,"url":2923,"score":2924},"### Environment\n\nWorking directory: /home/projects/nuxt-starter-3ukexv 10:21:36\r\nNuxt project info: 10:21:36\r\n\r\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v18.18.0\r\n- Nuxt Version: 3.8.0\r\n- CLI Version: 3.9.1\r\n- Nitro Version: 2.7.0\r\n- Package Manager: npm@9.4.2\r\n- Builder: -\r\n- User Config: devtools\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\r\n\r\n👉 Report an issue: https://github.com/nuxt/nuxt/issues/new 10:21:36\r\n\r\n👉 Suggest an improvement: https://github.com/nuxt/nuxt/discussions/new\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/nuxt-starter-3ukexv?file=pages%2Findex.vue\n\n### Describe the bug\n\nWe are upgrading from 3.7.4 to 3.8.0 and we have a lot of errors \"Cannot read properties of null (reading 'parentNode')\"\r\n\r\nThis errors doesnt appears with 3.7.4\r\n\r\nOne of them you can see in the reproduction link.\r\n\r\nThe most of them, are related with .client components\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2914,2915,2916,2919],{"name":2897,"color":2898},{"name":2869,"color":2870},{"name":2917,"color":2918},"pages","00DFB5",{"name":2875,"color":2876},23876,"Cannot read properties of null (reading 'parentNode') with client Component and OnMounted","2023-10-25T00:34:23Z","https://github.com/nuxt/nuxt/issues/23876",0.67275614,{"labels":2926,"number":2931,"owner":2878,"repository":2878,"state":2889,"title":2932,"updated_at":2933,"url":2934,"score":2935},[2927,2930],{"name":2928,"color":2929},"enhancement","8DEF37",{"name":2897,"color":2898},13848,"add noscript support","2025-02-13T09:02:12Z","https://github.com/nuxt/nuxt/issues/13848",0.67321455,{"description":2937,"labels":2938,"number":2942,"owner":2878,"repository":2878,"state":2889,"title":2943,"updated_at":2944,"url":2945,"score":2946},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v18.15.0`\r\n- Nuxt Version: `3.4.3`\r\n- Nitro Version: `2.3.3`\r\n- Package Manager: `npm@9.5.0`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-28uc9k?file=app.vue\n\n### Describe the bug\n\nAfter upgrading to Nuxt `v3.4.3` I get the following error:\r\n```shell\r\n ERROR Internal server error: Unknown component mode: null, this might be an internal bug of Nuxt.\r\n Plugin: nuxt:components:imports\r\n File: /Users/.../assets/placeholder.svg?component\r\n at TransformContext.transform (file:///Users/.../node_modules/nuxt/dist/index.mjs:1289:17)\r\n at plugin.transform (file:///Users/.../node_modules/unplugin/dist/index.mjs:1158:25)\r\n at Object.transform (file:///Users/.../node_modules/vite/dist/node/chunks/dep-f7d05e3f.js:42871:44)\r\n at async loadAndTransform (file:///Users/.../node_modules/vite/dist/node/chunks/dep-f7d05e3f.js:53335:29)\r\n```\r\n\r\nI am using the [Vite SVG Loader](https://github.com/jpkleemans/vite-svg-loader) plugin\r\nand the error is thrown when importing a SVG files with\r\n```ts\r\nimport Logo from 'assets/placeholder.svg?component';\r\n```\r\nIn Nuxt version `v3.4.2` everything is working.\n\n### Additional context\n\nhttps://github.com/nuxt/nuxt/blob/da3357449f456632bb2f07893c5d24065b081f53/packages/nuxt/src/components/transform.ts#L73\n\n### Logs\n\n_No response_",[2939,2940,2941],{"name":2897,"color":2898},{"name":2869,"color":2870},{"name":2875,"color":2876},20650,"`Unknown component mode: null` after upgrading to Nuxt `v3.4.3`","2023-05-10T15:45:56Z","https://github.com/nuxt/nuxt/issues/20650",0.6737173,{"description":2948,"labels":2949,"number":2959,"owner":2878,"repository":2878,"state":2889,"title":2960,"updated_at":2961,"url":2962,"score":2963},"### Environment\n\ndev\n\n### Reproduction\n\nnone\n\n### Describe the bug\n\n页面使用\u003CNuxtLayout>后在设置 keepalive: true,路由从别处跳转过来报错,在layout中能够正常跳转,非layout组件跳转过来报错\r\nTypeError: Cannot read properties of null (reading 'insertBefore')\n\n### Additional context\n\n\u003Cimg width=\"575\" alt=\"WeChat26d774ce2a549537517b76b333bc53de\" src=\"https://github.com/nuxt/nuxt/assets/48787313/d51c4464-8d4d-4b47-b77c-2290ce2e5c26\">\r\n\n\n### Logs\n\n_No response_",[2950,2951,2954,2956],{"name":2897,"color":2898},{"name":2952,"color":2953},"pending triage","E99695",{"name":2955,"color":2876},"needs reproduction",{"name":2957,"color":2958},"closed-by-bot","ededed",22959,"nuxt3设置keepalive:true后路由跳转报错","2023-12-16T04:01:11Z","https://github.com/nuxt/nuxt/issues/22959",0.67604196,{"labels":2965,"number":2971,"owner":2878,"repository":2878,"state":2889,"title":2972,"updated_at":2973,"url":2974,"score":2975},[2966,2967,2968],{"name":2897,"color":2898},{"name":2869,"color":2870},{"name":2969,"color":2970},"kit","60E14C",11749,"`addPlugin` can't access current nuxt context","2023-01-19T15:47:40Z","https://github.com/nuxt/nuxt/issues/11749",0.6783877,{"description":2885,"labels":2977,"number":1519,"owner":2878,"repository":2978,"state":2889,"title":2979,"updated_at":2980,"url":2981,"score":2982},[],"icon","Move to nuxt-modules org","2022-09-06T18:09:20Z","https://github.com/nuxt/icon/issues/4",0.6804988,["Reactive",2984],{},["Set"],["ShallowReactive",2987],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fGSI6onEVJGV_GFW0IdbMvFehOfECjun-Tn5Z2MpWcE4":-1},"/nuxt/test-utils/377"]