\n\n\u003Cimg width=\"1611\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/6015d858-6885-4a6f-87dc-c4a6cad14c17\" />\n\n\u003Cimg width=\"1611\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/33e30c72-9a44-41a4-a960-d1f5b27c4b2b\" />\n\nAm I doing something wrong? \u003Cimg src=\"https://emoji.slack-edge.com/T024JGC6U/peepo-shy/4cbca30f1db7cb4c.gif\" style=\"max-width: 100%\" width=\"20px\">",[1984],{"name":1985,"color":1986},"upstream","E8A36D",31102,"nuxt","open","definePageMeta validate not working as expected","2025-03-01T22:42:28Z","https://github.com/nuxt/nuxt/issues/31102",0.62989604,{"description":1995,"labels":1996,"number":2000,"owner":1988,"repository":1988,"state":1989,"title":2001,"updated_at":2002,"url":2003,"score":2004},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v18.14.0`\r\n- Nuxt Version: `3.2.0`\r\n- Nitro Version: `2.2.1`\r\n- Package Manager: `npm@9.3.1`\r\n- Builder: `vite`\r\n- User Config: `modules`, `app`\r\n- Runtime Modules: `@nuxtjs/tailwindcss@6.4.0`, `@pinia/nuxt@0.4.7`\r\n- Build Modules: `-`\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-sdk9yf?file=pages/index.vue\n\n### Describe the bug\n\nI'm defining page meta (title) on normal pages located in the `pages` directory. They use the default layout from the `layouts` directory. In the layout, there is a div that displays a title which is set using `definePageMeta`. The same layout is also used for `error.vue`, but here is the problem. Page meta is taken from the last page that was visited.\r\n\r\nOpen app (/) -> Go to about page (/about) -> Go to the page that doesn't exist = title is taken from the about page\r\nOpen app (/) -> Go to about page (/contact) -> Go to the page that doesn't exist = title is taken from the contact page\r\n\r\nThere is no problem with page meta (even if it is not set) while navigating between normal pages.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[1997],{"name":1998,"color":1999},"documentation","5319e7",19344,"Page meta is not reset on error page","2024-06-30T11:09:22Z","https://github.com/nuxt/nuxt/issues/19344",0.6488646,{"labels":2006,"number":2016,"owner":1988,"repository":1988,"state":2017,"title":2018,"updated_at":2019,"url":2020,"score":2021},[2007,2010,2013],{"name":2008,"color":2009},"3.x","29bc7f",{"name":2011,"color":2012},"pending triage","E99695",{"name":2014,"color":2015},"needs reproduction","FBCA04",13354,"closed","definePageMeta doesnt apply the correct layout","2023-01-19T16:53:09Z","https://github.com/nuxt/nuxt/issues/13354",0.5729831,{"labels":2023,"number":2026,"owner":1988,"repository":1988,"state":2017,"title":2027,"updated_at":2028,"url":2029,"score":2030},[2024,2025],{"name":2008,"color":2009},{"name":2011,"color":2012},13335,"Layouts not working with definePageMeta","2023-01-19T16:53:04Z","https://github.com/nuxt/nuxt/issues/13335",0.59420425,{"description":2032,"labels":2033,"number":2035,"owner":1988,"repository":1988,"state":2017,"title":2036,"updated_at":2037,"url":2038,"score":2039},"### Environment\n\nNuxt 3\nvue-facing-decorator\n\n### Reproduction\n\nhttps://github.com/mak7an/nuxt/tree/main\n\n### Describe the bug\n\n\nNot work `nexpected character '@' `\n\n```\nimport { Component, Vue, Setup } from 'vue-facing-decorator'\n\n@Component\nexport default class MyComponent extends Vue {\n @Setup(() => definePageMeta({\n layout: 'admin',\n }))\n layout!: never\n}\n```\n\nWork\n\n```\n@Setup(() => ref({\n layout: 'admin',\n }))\n layout!: never\n```\n\nThey don't know what to do https://github.com/facing-dev/vue-facing-decorator/issues/129\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2034],{"name":2011,"color":2012},29692,"definePageMeta not work in class","2024-11-05T06:25:45Z","https://github.com/nuxt/nuxt/issues/29692",0.59593326,{"description":2041,"labels":2042,"number":2045,"owner":1988,"repository":1988,"state":2017,"title":2046,"updated_at":2047,"url":2048,"score":2049},"### Environment\n\nno\n\n### Reproduction\n\nhttps://codesandbox.io/p/sandbox/hopeful-stonebraker-6i12p9?file=%2Flayouts%2Flayout-custom.vue\n\n### Describe the bug\n\nThe layout attribute of definePageMeta cannot override the value of the name attribute of the NuxtLayout component. Adding the following code to the vue page under specific pages/ is invalid\r\n```\r\ndefinePageMeta({\r\n layout: \"layout-custom\",\r\n});\r\n```\r\n\r\nWhen the name attribute of the NuxtLayout component of app.vue is deleted, it will return to normal.\r\nI should define the layout page used by definePageMeta to override the NuxtLayout component name property of the app.vue page.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2043,2044],{"name":2008,"color":2009},{"name":2011,"color":2012},20805,"definePageMeta's Vue page declaration layout attribute in the pages directory is invalid","2023-05-15T10:18:27Z","https://github.com/nuxt/nuxt/issues/20805",0.60514337,{"description":2051,"labels":2052,"number":2058,"owner":1988,"repository":1988,"state":2017,"title":2059,"updated_at":2060,"url":2061,"score":2062},"### Environment\n\nNuxt 3.12.x\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-1zinkb?file=pages%2Findex.vue\n\n### Describe the bug\n\nThe last update is causing breaking change when someone is using `script` alongside `script setup` to name components for devtools: https://vuejs.org/api/sfc-script-setup.html#usage-alongside-normal-script\r\n\r\nThis affects `definePageMeta` as it is ignored and Layouts are not working properly\n\n### Additional context\n\nSince Vue 3.3+, there is already a macro `defineOptions` https://vuejs.org/api/sfc-script-setup#defineoptions, and this is respected. \r\n\r\nI'm filling this bug just to let you know about that for educational purposes :) also maybe someone will search for issues and find this helpful 🙌\n\n### Logs\n\n_No response_",[2053,2056],{"name":2054,"color":2055},"bug","d73a4a",{"name":2057,"color":2015},"🔨 p3-minor",27845,"`definePageMeta` is ignored when used alongside normal \u003Cscript> since 3.12.x","2024-08-21T11:38:19Z","https://github.com/nuxt/nuxt/issues/27845",0.61574244,{"labels":2064,"number":2067,"owner":1988,"repository":1988,"state":2017,"title":2068,"updated_at":2069,"url":2070,"score":2071},[2065,2066],{"name":2008,"color":2009},{"name":2011,"color":2012},13765,"definePageMeta not defined","2023-01-19T17:05:21Z","https://github.com/nuxt/nuxt/issues/13765",0.6184607,{"description":2073,"labels":2074,"number":2077,"owner":1988,"repository":1988,"state":2017,"title":2078,"updated_at":2079,"url":2080,"score":2081},"### Environment\r\n\r\n------------------------------\r\n- Operating System: Windows_NT\r\n- Node Version: v16.19.0\r\n- Nuxt Version: 3.6.5\r\n- Nitro Version: 2.5.2\r\n- Package Manager: yarn@1.22.19\r\n- Builder: vite\r\n- User Config: extends, app, imports, css, modules, vite, runtimeConfig, alias, build\r\n- Runtime Modules: nuxt-icon@0.2.11, nuxt-typed-router@3.2.5, nuxt-vitest@0.7.2, @nuxtjs/i18n@8.0.0-beta.10\r\n- Build Modules: -\r\n------------------------------\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/github-jk2ltg?file=pages%2Ftest.vue\r\n\r\n### Describe the bug\r\n\r\n`\u003Cnuxt-layout>` component works fine, but `definePageMeta().layout` not working.\r\n\r\n### Additional context\r\n\r\nhttps://nuxt.com/docs/guide/directory-structure/layouts\r\nhttps://nuxt.com/docs/guide/directory-structure/pages#page-metadata\r\n\r\n### Logs\r\n\r\n_No response_",[2075,2076],{"name":2008,"color":2009},{"name":2011,"color":2012},22681,"`layout` property not working in `definePageMeta()`","2023-08-17T14:57:19Z","https://github.com/nuxt/nuxt/issues/22681",0.62795806,{"description":2083,"labels":2084,"number":2086,"owner":1988,"repository":1988,"state":2017,"title":2087,"updated_at":2088,"url":2089,"score":2090},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v20.16.0`\r\n- Nuxt Version: `3.11.2`\r\n- CLI Version: `3.12.0`\r\n- Nitro Version: `2.9.7`\r\n- Package Manager: `npm@10.8.1`\r\n- Builder: `-`\r\n- User Config: `compatibilityDate`, `ssr`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\n\n### Reproduction\n\n### nuxt@3.11.2\r\n\r\n[StackBlitz](https://stackblitz.com/edit/nuxt-3-11-2-define-page-meta-error?file=pages%2Findex.tsx)\r\n\r\n### nuxt@3.12.0\r\n\r\n[StackBlitz](https://stackblitz.com/edit/nuxt-3-12-0-define-page-meta-error?file=pages%2Findex.tsx)\n\n### Describe the bug\n\n### nuxt@3.11.2\r\n\r\nWhen using the `definePageMeta` function, I was able to change the layout on the page. In the example below, the top text is with the `no-auth` layout, and the bottom text is with the `main` page. There is also a warning that `definePageMeta` can only be used on pages.\r\n\r\n```\r\ndefinePageMeta() is a compiler-hint helper that is only usable inside the script block of a single file component which is also a page. Its arguments should be compiled away and passing it at runtime has no effect.\r\n```\r\n\r\n\u003Cimg width=\"1512\" alt=\"image\" src=\"https://github.com/user-attachments/assets/5ca8b716-e2a8-4e53-8589-94a786ea7545\">\r\n\r\n### nuxt@3.12.0\r\n\r\nIn nuxt@3.12.0 when using `definePageMeta` it is not possible to change layout and default is used. There is also a warning about using `definePageMeta`.\r\n\r\n```\r\ndefinePageMeta() is a compiler-hint helper that is only usable inside the script block of a single file component which is also a page. Its arguments should be compiled away and passing it at runtime has no effect.\r\n```\r\n\r\n\u003Cimg width=\"1512\" alt=\"image\" src=\"https://github.com/user-attachments/assets/2eeb488e-f197-42fa-b72b-e55416a0208a\">\r\n\r\n\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2085],{"name":2011,"color":2012},28591,"In nuxt@3.12.0 the definePageMeta function is broken","2024-08-19T11:53:51Z","https://github.com/nuxt/nuxt/issues/28591",0.6316559,["Reactive",2092],{},["Set"],["ShallowReactive",2095],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"fptjYERZWE86Qt8k5zPnuL5QPnLY75qy3qpu_aYbBsg":-1},"/nuxt/nuxt/27943"]