` into `app.vue` file.\r\n5) Add some page in `pages` folder\r\n6) See type errors when using `$route` in the template or global `useRoute()` function in composition API.\r\n\r\n### Describe the bug\r\n\r\nThere are type errors when just using Nuxt 3 pages router out of the box.\r\n\r\n### Additional context\r\n\r\n**package.json**\r\n\r\n```\r\n{\r\n \"name\": \"my-new-nuxt-app\",\r\n \"private\": true,\r\n \"scripts\": {\r\n \"build\": \"nuxt build\",\r\n \"dev\": \"nuxt dev\",\r\n \"generate\": \"nuxt generate\",\r\n \"preview\": \"nuxt preview\",\r\n \"postinstall\": \"nuxt prepare\"\r\n },\r\n \"devDependencies\": {\r\n \"@nuxt/devtools\": \"^0.5.5\",\r\n \"@types/node\": \"^18.16.18\",\r\n \"nuxt\": \"^3.6.1\"\r\n },\r\n \"overrides\": {\r\n \"vue\": \"latest\"\r\n }\r\n}\r\n```\r\n\r\n**app.vue**\r\n\r\n```\r\n\u003Ctemplate>\r\n \u003Cdiv>\r\n \u003CNuxtPage />\r\n \u003C/div>\r\n\u003C/template>\r\n```\r\n\r\n**pages/[code].vue**\r\n\r\n```\r\n\u003Ctemplate>\r\n \u003Cdiv>\r\n \u003Cp>{{ $route.params.code }}\u003C/p>\r\n \u003C/div>\r\n\u003C/template>\r\n\r\n\u003Cscript setup lang=\"ts\">\r\n const route = useRoute()\r\n console.log('code:', route.params.code)\r\n\u003C/script>\r\n```\r\n\r\n**nuxt.config.ts**\r\n\r\n```\r\n// https://nuxt.com/docs/api/configuration/nuxt-config\r\nexport default defineNuxtConfig({\r\n devtools: { enabled: true },\r\n pages: true,\r\n})\r\n```\r\n\r\nVS Code\r\nNode v16.14.2\r\nNPM 8.5.0\r\n\r\n### Logs\r\n\r\n_No response_",[1984,1987,1990],{"name":1985,"color":1986},"3.x","29bc7f",{"name":1988,"color":1989},"pending triage","E99695",{"name":1991,"color":1992},"needs reproduction","FBCA04",21859,"nuxt","closed","Pages route type issue","2023-06-29T10:04:02Z","https://github.com/nuxt/nuxt/issues/21859",0.6285958,{"description":2001,"labels":2002,"number":2005,"owner":1994,"repository":1994,"state":1995,"title":2006,"updated_at":2007,"url":2008,"score":2009},"### Environment\n\nNuxt project info: \r\n\r\n------------------------------\r\n- Operating System: `Windows_NT`\r\n- Node Version: `v16.17.0`\r\n- Nuxt Version: `3.0.0-rc.11`\r\n- Nitro Version: `0.5.4`\r\n- Package Manager: `npm@8.19.2`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n------------------------------\r\n\n\n### Reproduction\n\n- Create a Nuxt module project:\r\n\r\n```\r\nnpx nuxi init -t module my-module\r\ncd my-module\r\nnpm i \r\nnpm run dev:prepare\r\n```\r\n\r\n- Make a call to `extendPages` within `module.ts` to add a page:\r\n\r\n```ts [module.ts]\r\nextendPages((pages) => {\r\n pages.push({\r\n name: 'module-page',\r\n path: '/:slug(.*)*',\r\n // @ts-ignore\r\n file: resolve(runtimeDir, './MyPage.vue')\r\n })\r\n})\r\n```\r\n- Add a page `~/src/runtime/MyPage.vue`:\r\n\r\n```vue [MyPage.vue]\r\n\u003Ctemplate>\r\n \u003Cdiv>Hello!\u003C/div>\r\n\u003C/template>\r\n```\r\n\r\n- Update `app.vue` to add `\u003CNuxtLayout>` and `\u003CNuxtPage>`:\r\n\r\n```vue [app.vue]\r\n\u003Ctemplate>\r\n \u003Cdiv>\r\n \u003CNuxtLayout>\r\n \u003CNuxtPage />\r\n \u003C/NuxtLayout>\r\n \u003C/div>\r\n\u003C/template>\r\n```\r\n\r\n- Run the project with `npm run dev` and note that the page has not loaded:\r\n```\r\nPlugin by my-module!\r\n√ Vite server hmr 4 files in 50.259ms\r\n[Vue warn]: Failed to resolve component: NuxtPage\r\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.\r\nPlugin by my-module!\r\n[Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n√ Vite server hmr 4 files in 143.147ms\r\n[Vue warn]: Failed to resolve component: NuxtPage\r\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.\r\nPlugin by my-module!\r\n```\n\n### Describe the bug\n\nNuxt cleverly strips out all router functionality if a project does not have a pages directory. However, this functionality is still removed if an installed module calls 'extendPages', so modules can't actually provide pages unless the project itself already has some, which may not always be the case.\r\n\r\nI think router functionality should be preserved by Nuxt if `extendPages` is called.\r\n\n\n### Additional context\n\nI am creating a module which creates a catch all page so I can do my own routing. I don't want to need to create a page in every project in order for my module's page to take effect. I can imagine other modules will want to act similarly, even if they're only providing more specific routes/pages.\n\n### Logs\n\n_No response_",[2003,2004],{"name":1985,"color":1986},{"name":1988,"color":1989},15060,"Nuxt does not include router functionality when a module calls extendPages unless the project has its own pages directory","2023-01-19T17:44:18Z","https://github.com/nuxt/nuxt/issues/15060",0.6390604,{"description":2011,"labels":2012,"number":2015,"owner":1994,"repository":1994,"state":1995,"title":2016,"updated_at":2017,"url":2018,"score":2019},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v20.11.0`\r\n- Nuxt Version: `3.10.0`\r\n- CLI Version: `3.10.0`\r\n- Nitro Version: `2.8.1`\r\n- Package Manager: `pnpm@8.14.3`\r\n- Builder: `-`\r\n- User Config: `devtools`, `hooks`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-npkz3u?file=nuxt.config.ts\n\n### Describe the bug\n\nWhen adding a custom route using the `pages:extend` hook, get the following error : \r\n\r\n\r\n\r\nIt was working as expected as of nuxt@3.9, but it's not working with nuxt@3.10 anymore.\r\n\r\nMaybe I'm missing something, but I haven't found much information about this in docs.\n\n### Additional context\n\nIn a context of a migration from Nuxt2 to Nuxt3, I want to add custom routes to my application with specific metadata. Those routes (which have not been migrated yet) must redirect to the legacy website. \r\n\r\nI've created a global middleware that performs a hard page reload when the matched route has the `{ isLegacy: true }` in client side (our reverse proxy already serves Nuxt2 or Nuxt3 depending on the requested URL in server side). This route will never be rendered, that's why the optional `file` property is not set.\n\n### Logs\n\n```shell-script\nnuxt.js?v=4faa9c13:98 [nuxt] error caught during app initialization TypeError: aliases is not iterable\r\n at addRoute (vue-router.js?v=4faa9c13:1065:27)\r\n at vue-router.js?v=4faa9c13:1219:29\r\n at Array.forEach (\u003Canonymous>)\r\n at createRouterMatcher (vue-router.js?v=4faa9c13:1219:10)\r\n at createRouter (vue-router.js?v=4faa9c13:2233:19)\r\n at setup (router.js?v=4faa9c13:46:20)\r\n at client.mjs:31:69\r\n at executeAsync (index.mjs?v=4faa9c13:111:19)\r\n at setup (client.mjs:31:43)\r\n at nuxt.js?v=4faa9c13:111:60\n```\n",[2013,2014],{"name":1985,"color":1986},{"name":1988,"color":1989},25562,"Unable to add custom routes via `pages:extend` hook","2024-02-15T09:20:55Z","https://github.com/nuxt/nuxt/issues/25562",0.64032215,{"labels":2021,"number":2032,"owner":1994,"repository":1994,"state":1995,"title":2033,"updated_at":2034,"url":2035,"score":2036},[2022,2025,2026,2029],{"name":2023,"color":2024},"enhancement","8DEF37",{"name":1985,"color":1986},{"name":2027,"color":2028},"pages","00DFB5",{"name":2030,"color":2031},"🍰 p2-nice-to-have","0E8A16",13854,"how to use hooks pages.extend to config named route view?","2024-06-17T17:47:50Z","https://github.com/nuxt/nuxt/issues/13854",0.6411256,{"description":2038,"labels":2039,"number":2042,"owner":1994,"repository":1994,"state":1995,"title":2043,"updated_at":2044,"url":2045,"score":2046},"### Environment\n\nNuxt project info: 12:51:50 PM\r\n\r\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v20.11.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.4\r\n- Builder: -\r\n- User Config: experimental, app, appConfig, css, debug, devServer, devtools, hooks, modules, runtimeConfig, sourcemap, srcDir, telemetry, vite, nitro, defaults, mapRoute\r\n- Runtime Modules: nuxt-bugsnag@7.2.3, @nuxtjs/tailwindcss@6.10.4, nuxt-lazy-hydrate@1.0.0, @pinia/nuxt@0.5.1, @pinia-plugin-persistedstate/nuxt@1.2.0, @nuxtjs/device@3.1.1\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/nuxt-starter-vlcm6u?file=nuxt.config.ts\r\n\r\nGo to nuxt.config.ts and uncomment the route with a redirect key\n\n### Describe the bug\n\nWhen creating the routes using the hook `pages:extend` if a route contains the property redirect, the app won't render and will show some errors in the console.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n[nuxt] error caught during app initialization TypeError: aliases is not iterable\r\n at addRoute (vue-router.js?v=179660f4:1065:27)\r\n at vue-router.js?v=179660f4:1219:29\r\n at Array.forEach (\u003Canonymous>)\r\n at createRouterMatcher (vue-router.js?v=179660f4:1219:10)\r\n at createRouter (vue-router.js?v=179660f4:2233:19)\r\n at setup (router.js?v=179660f4:46:20)\r\n at client.mjs:30:69\r\n at executeAsync (index.mjs?v=179660f4:111:19)\r\n at setup (client.mjs:30:43)\r\n at nuxt.js?v=179660f4:111:60\r\n\r\nchunk-UKZM2QLG.js?v=179660f4:1502 [Vue warn]: Invalid vnode type when creating vnode: undefined. \r\n at \u003CNuxtRoot>\r\nwarn$1 @ chunk-UKZM2QLG.js?v=179660f4:1502\r\n_createVNode @ chunk-UKZM2QLG.js?v=179660f4:8630\r\ncreateVNodeWithArgsTransform @ chunk-UKZM2QLG.js?v=179660f4:8557\r\ncreateBlock @ chunk-UKZM2QLG.js?v=179660f4:8531\r\n(anonymous) @ nuxt-root.vue:76\r\nrenderFnWithContext @ chunk-UKZM2QLG.js?v=179660f4:2275\r\nnormalizeSuspenseSlot @ chunk-UKZM2QLG.js?v=179660f4:3177\r\nnormalizeSuspenseChildren @ chunk-UKZM2QLG.js?v=179660f4:3164\r\ncreateBaseVNode @ chunk-UKZM2QLG.js?v=179660f4:8605\r\n_createVNode @ chunk-UKZM2QLG.js?v=179660f4:8680\r\ncreateVNodeWithArgsTransform @ chunk-UKZM2QLG.js?v=179660f4:8557\r\ncreateBlock @ chunk-UKZM2QLG.js?v=179660f4:8531\r\n_sfc_render @ nuxt-root.vue:62\r\nrenderComponentRoot @ chunk-UKZM2QLG.js?v=179660f4:2334\r\nhydrateSubTree @ chunk-UKZM2QLG.js?v=179660f4:7407\r\ncomponentUpdateFn @ chunk-UKZM2QLG.js?v=179660f4:7434\r\nrun @ chunk-UKZM2QLG.js?v=179660f4:429\r\ninstance.update @ chunk-UKZM2QLG.js?v=179660f4:7571\r\nsetupRenderEffect @ chunk-UKZM2QLG.js?v=179660f4:7581\r\nmountComponent @ chunk-UKZM2QLG.js?v=179660f4:7349\r\nhydrateNode @ chunk-UKZM2QLG.js?v=179660f4:6220\r\nhydrate2 @ chunk-UKZM2QLG.js?v=179660f4:6082\r\nmount @ chunk-UKZM2QLG.js?v=179660f4:5364\r\napp.mount @ chunk-UKZM2QLG.js?v=179660f4:11076\r\ninitApp @ entry.js:55\r\nawait in initApp (async)\r\n(anonymous) @ entry.js:65\r\nShow 26 more frames\r\nShow less\r\nchunk-UKZM2QLG.js?v=179660f4:1502 [Vue warn]: \u003CSuspense> slots expect a single root node. \r\n at \u003CNuxtRoot>\r\nwarn$1 @ chunk-UKZM2QLG.js?v=179660f4:1502\r\nnormalizeSuspenseSlot @ chunk-UKZM2QLG.js?v=179660f4:3187\r\nnormalizeSuspenseChildren @ chunk-UKZM2QLG.js?v=179660f4:3164\r\ncreateBaseVNode @ chunk-UKZM2QLG.js?v=179660f4:8605\r\n_createVNode @ chunk-UKZM2QLG.js?v=179660f4:8680\r\ncreateVNodeWithArgsTransform @ chunk-UKZM2QLG.js?v=179660f4:8557\r\ncreateBlock @ chunk-UKZM2QLG.js?v=179660f4:8531\r\n_sfc_render @ nuxt-root.vue:62\r\nrenderComponentRoot @ chunk-UKZM2QLG.js?v=179660f4:2334\r\nhydrateSubTree @ chunk-UKZM2QLG.js?v=179660f4:7407\r\ncomponentUpdateFn @ chunk-UKZM2QLG.js?v=179660f4:7434\r\nrun @ chunk-UKZM2QLG.js?v=179660f4:429\r\ninstance.update @ chunk-UKZM2QLG.js?v=179660f4:7571\r\nsetupRenderEffect @ chunk-UKZM2QLG.js?v=179660f4:7581\r\nmountComponent @ chunk-UKZM2QLG.js?v=179660f4:7349\r\nhydrateNode @ chunk-UKZM2QLG.js?v=179660f4:6220\r\nhydrate2 @ chunk-UKZM2QLG.js?v=179660f4:6082\r\nmount @ chunk-UKZM2QLG.js?v=179660f4:5364\r\napp.mount @ chunk-UKZM2QLG.js?v=179660f4:11076\r\ninitApp @ entry.js:55\r\nawait in initApp (async)\r\n(anonymous) @ entry.js:65\r\nShow 21 more frames\r\nShow less\r\nchunk-UKZM2QLG.js?v=179660f4:2897 \u003CSuspense> is an experimental feature and its API will likely change.\r\nchunk-UKZM2QLG.js?v=179660f4:1502 [Vue warn]: Hydration node mismatch:\r\n- rendered on server: \u003Cdiv class=\"font-sans antialiased bg-white px-10 pt-14 dark:bg-black text-black dark:text-white min-h-screen flex flex-col\" data-v-inspector=\"node_modules/@nuxt/ui-templates/dist/templates/error-dev.vue:40:1\" data-v-6b2d7187>…\u003C/div> \r\n- expected on client: Symbol(v-cmt) \r\n at \u003CNuxtRoot>\r\nwarn$1 @ chunk-UKZM2QLG.js?v=179660f4:1502\r\nhandleMismatch @ chunk-UKZM2QLG.js?v=179660f4:6450\r\nonMismatch @ chunk-UKZM2QLG.js?v=179660f4:6091\r\nhydrateNode @ chunk-UKZM2QLG.js?v=179660f4:6156\r\nhydrateSuspense @ chunk-UKZM2QLG.js?v=179660f4:3148\r\nhydrateNode @ chunk-UKZM2QLG.js?v=179660f4:6256\r\nhydrateSubTree @ chunk-UKZM2QLG.js?v=179660f4:7414\r\ncomponentUpdateFn @ chunk-UKZM2QLG.js?v=179660f4:7434\r\nrun @ chunk-UKZM2QLG.js?v=179660f4:429\r\ninstance.update @ chunk-UKZM2QLG.js?v=179660f4:7571\r\nsetupRenderEffect @ chunk-UKZM2QLG.js?v=179660f4:7581\r\nmountComponent @ chunk-UKZM2QLG.js?v=179660f4:7349\r\nhydrateNode @ chunk-UKZM2QLG.js?v=179660f4:6220\r\nhydrate2 @ chunk-UKZM2QLG.js?v=179660f4:6082\r\nmount @ chunk-UKZM2QLG.js?v=179660f4:5364\r\napp.mount @ chunk-UKZM2QLG.js?v=179660f4:11076\r\ninitApp @ entry.js:55\r\nawait in initApp (async)\r\n(anonymous) @ entry.js:65\r\nShow 18 more frames\r\nShow less\r\nchunk-UKZM2QLG.js?v=179660f4:6086 Hydration completed but contains mismatches.\r\nhydrate2 @ chunk-UKZM2QLG.js?v=179660f4:6086\r\nmount @ chunk-UKZM2QLG.js?v=179660f4:5364\r\napp.mount @ chunk-UKZM2QLG.js?v=179660f4:11076\r\ninitApp @ entry.js:55\r\nawait in initApp (async)\r\n(anonymous) @ entry.js:65\r\nShow 5 more frames\r\nShow less\r\nnuxt.js?v=179660f4:98 [nuxt] error caught during app initialization TypeError: Cannot read properties of undefined (reading 'beforeEach')\r\n at setup (nuxt-root.vue:23:14)\r\n at callWithErrorHandling (chunk-UKZM2QLG.js?v=179660f4:1650:18)\r\n at setupStatefulComponent (chunk-UKZM2QLG.js?v=179660f4:9046:25)\r\n at setupComponent (chunk-UKZM2QLG.js?v=179660f4:9007:36)\r\n at mountComponent (chunk-UKZM2QLG.js?v=179660f4:7337:7)\r\n at hydrateNode (chunk-UKZM2QLG.js?v=179660f4:6220:11)\r\n at hydrate2 (chunk-UKZM2QLG.js?v=179660f4:6082:5)\r\n at mount (chunk-UKZM2QLG.js?v=179660f4:5364:13)\r\n at app.mount (chunk-UKZM2QLG.js?v=179660f4:11076:14)\r\n at initApp (entry.js:55:14)\n```\n",[2040,2041],{"name":1985,"color":1986},{"name":1988,"color":1989},25663,"Redirect property on route entry using pages:extend causes the app to break","2024-02-07T10:00:20Z","https://github.com/nuxt/nuxt/issues/25663",0.6479899,{"description":2048,"labels":2049,"number":2056,"owner":1994,"repository":1994,"state":1995,"title":2057,"updated_at":2058,"url":2059,"score":2060},"### Environment\r\n\r\nNuxi 3.0.0-rc.12 10:45:12\r\nRootDir: D:/sites/dog-ville-nuxt/dog-ville 10:45:13\r\nNuxt project info: 10:45:13\r\n\r\n------------------------------\r\n- Operating System: `Windows_NT`\r\n- Node Version: `v16.17.0`\r\n- Nuxt Version: `3.0.0-rc.12`\r\n- Nitro Version: `0.6.0`\r\n- Package Manager: `npm@8.15.0`\r\n- Builder: `vite`\r\n- User Config: `runtimeConfig`, `modules`, `tailwindcss`, `css`\r\n- Runtime Modules: `@nuxtjs/tailwindcss@5.3.5`\r\n- Build Modules: `-`\r\n\r\n### Reproduction\r\n\r\nPreviously i was at 11 release candidate. Iam update to new version via changing file package json from\r\n`\"nuxt\": \"3.0.0-rc.11\"` to `\"nuxt\": \"3.0.0-rc.12\"` \r\nAnd execute command npx nuxi@latest cleanup\r\nBefore that everything works fine. After update starts errror\r\n\r\n```\r\n[Vue warn]: injection \"Symbol(route location)\" not found.\r\n[Vue warn]: Unhandled error during execution of render function \r\n at \u003CAnonymous >\r\n[nitro] [dev] [unhandledRejection] TypeError: Cannot read properties of undefined (reading 'meta')\r\nat ReactiveEffect.fn (D:/sites/dog-ville-nuxt/dog-ville/node_modules/nuxt/dist/app/components/layout.mjs:54:106)\r\n```\r\n\r\n### Describe the bug\r\n\r\nIam go to this file and see that this code have this error\r\n```\r\nsetup(props, context) {\r\n const injectedRoute = inject(\"_route\");\r\n const route = injectedRoute === useRoute() ? useVueRouterRoute() : injectedRoute;\r\n const layout = computed(() => unref(props.name) ?? route.meta.layout ?? \"default\");\r\n let vnode;\r\n let _layout;\r\n```\r\nspecific this part route.meta.layout . Iam try to log what is it, something like this\r\n```\r\nsetup(props, context) {\r\n const injectedRoute = inject(\"_route\");\r\n const route = injectedRoute === useRoute() ? useVueRouterRoute() : injectedRoute;\r\n \r\n console.log(1)\r\n console.log(route)\r\n console.log(2)\r\n \r\n const layout = computed(() => unref(props.name) ?? route.meta.layout ?? \"default\");\r\n let vnode;\r\n let _layout;\r\n```\r\nAnd route was undefined. Iam going to different pages and everywhere this error. In more specific, this function is undefined useVueRouterRoute().\r\n \r\nCan somebody help with it?",[2050,2051,2054],{"name":1985,"color":1986},{"name":2052,"color":2053},"bug","d73a4a",{"name":2055,"color":1992},"🔨 p3-minor",15236,"`\u003CNuxtLayout>` does not work without `pages/` integration","2023-01-19T17:46:38Z","https://github.com/nuxt/nuxt/issues/15236",0.64950997,{"description":2062,"labels":2063,"number":2070,"owner":1994,"repository":1994,"state":1995,"title":2071,"updated_at":2072,"url":2073,"score":2074},"### Environment\r\n\r\n- Operating System: `Darwin`\r\n- Node Version: `v20.12.1`\r\n- Nuxt Version: `3.12.3`\r\n- CLI Version: `3.12.0`\r\n- Nitro Version: `2.9.7`\r\n- Package Manager: `npm@10.5.0`\r\n- Builder: `-`\r\n- User Config: `app`, `appConfig`, `vite`, `css`, `components`, `modules`, `formkit`, `experimental`, `nitro`, `sourcemap`, `runtimeConfig`, `postcss`, `devtools`, `typescript`\r\n- Runtime Modules: `nuxt-vitest@0.10.5`, `@vueuse/nuxt@10.11.0`, `@pinia/nuxt@0.5.1`, `@formkit/nuxt@1.6.5`\r\n- Build Modules: `-`\r\n\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/nuxt-starter-c2dzdp\r\n\r\nInstructions are on the site.\r\n\r\n### Describe the bug\r\n\r\nStarting with Nuxt 3.12.0, Nuxt is no longer calling key functions defined in `definePageMeta` for pages added via `pages:extend` hook. This results in pages re-mounting unexpectedly. In our case, we have a couple of routes all going to the same page component. We use `definePageMeta/key` to make sure the app re-mounts when specific url data changes.\r\n\r\nIt seems to be related to this change, https://github.com/nuxt/nuxt/pull/27134/files.\r\nIf I set `scanPageMeta: false`, it works as expected.\r\n\r\n### Additional context\r\nPossibly related to https://github.com/nuxt/nuxt/issues/28086\r\n\r\nPages added via /pages folder seem fine.\r\n",[2064,2065,2066,2067],{"name":1985,"color":1986},{"name":2052,"color":2053},{"name":2027,"color":2028},{"name":2068,"color":2069},"possible regression","B90A42",28122,"Nuxt 3.12.0 no longer calls route key functions in definePageMeta for routes created by the pages:extend hook","2025-01-21T17:16:43Z","https://github.com/nuxt/nuxt/issues/28122",0.6499821,{"description":2076,"labels":2077,"number":2080,"owner":1994,"repository":1994,"state":1995,"title":2081,"updated_at":2082,"url":2083,"score":2084},"### Environment\n\n------------------------------\r\n- Operating System: `Windows_NT`\r\n- Node Version: `v16.17.0`\r\n- Nuxt Version: `3.0.0`\r\n- Nitro Version: `2.0.0-27860563.409fe2b`\r\n- Package Manager: `pnpm@7.8.0`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n------------------------------\n\n### Reproduction\n\nhttps://github.com/nuxt/framework/blob/main/packages/nuxt/src/pages/module.ts\n\n### Describe the bug\n\nHi :wave: , I'm not sure if this is a bug or if this should be converted into a discussion.\r\n\r\n Currently i'm using the `router.options.ts` on one project to define my routes. I've tried to use `@nuxtjs/i18n` for lang translation but i've been struggling to make it work. \r\n\r\n i18n use `page:extends` to prefix routes. However, `router.options.ts` routes are being added after the `page:extend` hook as you can see [here ](https://github.com/nuxt/framework/blob/9de94c21cf7fa7008c75f859e0299e3f1c0b445c/packages/nuxt/src/pages/module.ts#L187-L211) .\r\n We also can't add it through the nuxt config due to the type `RouterConfigSerializable`.\r\n\r\n Can we maybe merge the routes generated from the `page` dir and those provided by `router.options.ts` ?\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2078,2079],{"name":1985,"color":1986},{"name":1988,"color":1989},12335,"app/router.options pages are not in `page:extend` hook","2023-01-30T11:57:17Z","https://github.com/nuxt/nuxt/issues/12335",0.65610003,{"labels":2086,"number":2090,"owner":1994,"repository":1994,"state":1995,"title":2091,"updated_at":2092,"url":2093,"score":2094},[2087,2088,2089],{"name":1985,"color":1986},{"name":2052,"color":2053},{"name":2030,"color":2031},14095,"NuxtPage typing doesn't allow passing custom props.","2023-01-19T17:24:11Z","https://github.com/nuxt/nuxt/issues/14095",0.6643105,{"description":2096,"labels":2097,"number":2104,"owner":1994,"repository":1994,"state":1995,"title":2105,"updated_at":2106,"url":2107,"score":2108},"Hi\r\n\r\nI was trying to extend routes with `router. extendRoutes` in `nuxt.config.js`. In documentation https://nuxtjs.org/api/configuration-router/#extendroutes there is written, that:\r\n> The schema of the route should respect the vue-router schema.\r\n\r\nSo I've tried to use some vou-router magic, eg. define redirect in form of `{ path: '/a', redirect: '/b' }` as described here https://router.vuejs.org/en/essentials/redirect-and-alias.html or pass props as described here https://router.vuejs.org/en/essentials/passing-props.html\r\n\r\nThen it appeared that some part of vue-router schema are not passed to `.nuxt/router.js` at all! It looks like only some explicitely defined properties are passed, as you can see here: https://github.com/nuxt/nuxt.js/blob/v0.10.6/lib/app/router.js#L15\r\n\r\nIn my opinion either documentation should not suggest vue-router schema support (or `.nuxt/router.js` should consists all routes' properties provided by User, even custom ones :-) )\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/c555\">#c555\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2098,2101],{"name":2099,"color":2100},"documentation","5319e7",{"name":2102,"color":2103},"2.x","d4c5f9",641,"Docs misleading about extending routes","2023-01-18T15:39:39Z","https://github.com/nuxt/nuxt/issues/641",0.6661106,["Reactive",2110],{},["Set"],["ShallowReactive",2113],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"-LuavbApxZ_zqze6dEs7fN1o3RG3_LULDhnwMtmp1rs":-1},"/nuxt/nuxt/19940"]