\r\n \u003C/NuxtLayout>\r\n\u003C/template>\r\n```\r\ndid not change the problem that the error page didn't get the layout. This is the first bug in my opinion. So I did a workaround:\r\n```\r\n\u003Cscript setup lang=\"ts\">\r\nimport type { NuxtError } from '#app'\r\nimport DefaultLayout from \"/layouts/default.vue\"\r\nconst props = defineProps({\r\n error: Object as () => NuxtError\r\n})\r\n\u003C/script>\r\n\u003Ctemplate>\r\n \u003CDefaultLayout>\r\n \u003Cdiv>\r\n \u003Ch1>{{ \"Error \" + error?.statusCode }}\u003C/h1>\r\n \u003Cpre>{{ JSON.stringify(error, null, 4) }}\u003C/pre>\r\n \u003CNuxtLink to=\"/\">Go back home\u003C/NuxtLink>\r\n \u003C/div>\r\n \u003C/DefaultLayout>\r\n\u003C/template>\r\n```\r\nThis was ugly but worked however eventually I noticed another problem. I tried passing props from layout to page components and that wasn't working (second bug). So I fixed (?) the problem by replacing `\u003Cslot>` on the layout with `\u003CNuxtPage />`. This again worked but I faced another problem: Now the error page content (other than layout) isn't visible. So now the \"best\" choice I know I have is to have an error page without a layout, but that's not what I want. Do you confirm my bug reports? What should I do? Thanks.",[2966,2967,2968,2971],{"name":2896,"color":2897},{"name":2885,"color":2886},{"name":2969,"color":2970},"needs reproduction","FBCA04",{"name":2972,"color":2973},"closed-by-bot","ededed",25982,"Layout issues (error page, slot/NuxtPage props)","2024-12-21T23:06:42Z","https://github.com/nuxt/nuxt/issues/25982",0.6762833,{"description":2980,"labels":2981,"number":2984,"owner":2875,"repository":2875,"state":2900,"title":2985,"updated_at":2986,"url":2987,"score":2988},"### Describe the feature\r\n\r\nIn Nuxt 2 there is a very nice method called ``$nuxt.setLayout('layout2')``. Sadly in Nuxt 3, this functionality is nowhere to be found. \r\n\r\nThe following method works but you cannot access any variables in this function. So you won't be able to set it dynamically.\r\n```\r\n\u003Cscript setup>\r\ndefinePageMeta({\r\n layout: 'layout2',\r\n});\r\n\u003C/script>\r\n```\r\n\r\nAnd this option won't be executed on SSR but only when the page is loaded. The page source won't show anything about the layout.\r\n\r\n```\r\n\u003Cscript setup>\r\nconst route = useRoute()\r\nroute.meta.layout = \"layout2\"\r\n\r\ndefinePageMeta({\r\n layout: false,\r\n});\r\n\u003C/script>\r\n```\r\n\r\nSo I'm going to assume this functionality isn't in the build yet or it isn't in the documentation.\r\n\r\n### Additional information\r\n\r\n- [ ] Would you be willing to help implement this feature?\r\n- [ ] Could this feature be implemented as a module?\r\n\r\n### Final checks\r\n\r\n- [X] Read the [contribution guide](https://v3.nuxtjs.org/community/contribution).\r\n- [X] Check existing [discussions](https://github.com/nuxt/framework/discussions) and [issues](https://github.com/nuxt/framework/issues).",[2982,2983],{"name":2935,"color":2936},{"name":2896,"color":2897},14658,"Change default layout programmatically","2023-01-19T17:38:30Z","https://github.com/nuxt/nuxt/issues/14658",0.6764837,["Reactive",2990],{},["Set"],["ShallowReactive",2993],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fJygLCP3GORJN8Td0wZc31VGSoMTGqUf53P0ARHug2qY":-1},"/nuxt/nuxt/19428"]