\r\n \u003C/NuxtLayout>\r\n\u003C/template>\r\n```\r\nChange the pages directory to something else in `nuxt.config.ts`.\r\n```ts\r\n// https://nuxt.com/docs/api/configuration/nuxt-config\r\nexport default defineNuxtConfig({\r\n dir: {\r\n pages: \"routes\"\r\n }\r\n});\r\n```\r\nMake sure to not have anything in the pages directory.\n\n### Describe the bug\n\nNuxt throws info message `Create a Vue component in the pages/ directory to enable \u003CNuxtPage>` instead of `Create a Vue component in the (pages dir)/ directory to enable \u003CNuxtPage>`.\n\n### Additional context\n\nLiterally no one cares, but I get annoyed by anything.\n\n### Logs\n\n_No response_",[2011,2014],{"name":2012,"color":2013},"3.x","29bc7f",{"name":2001,"color":2002},20064,"closed","\u003CNuxtPage> info message does not take custom pages dir into account","2023-04-04T13:18:31Z","https://github.com/nuxt/nuxt/issues/20064",0.6061589,{"description":2022,"labels":2023,"number":2026,"owner":1991,"repository":1991,"state":2016,"title":2027,"updated_at":2028,"url":2029,"score":2030},"### Environment\n\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v16.14.2\r\n- Nuxt Version: 3.4.3\r\n- Nitro Version: 2.4.0\r\n- Package Manager: npm@7.17.0\r\n- Builder: vite\r\n- User Config: modules\r\n- Runtime Modules: ./modules/test-module\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-hcx5za\n\n### Describe the bug\n\nIf `pages/` directory is not created or is empty and all of the pages are defined using `extendPages` in module, it throws warning:\r\n\r\n`Create a Vue component in the pages/ directory to enable \u003CNuxtPage>`\r\n\r\nand shows blank page.\r\n\r\nIf you create e.g. `pages/test.vue`, warning goes away and displays the intended page.\n\n### Additional context\n\nAlso this warning goes away, if I create `app/router.options.ts` file.\n\n### Logs\n\n_No response_",[2024,2025],{"name":2012,"color":2013},{"name":2001,"color":2002},20801,"\u003CNuxtPage> info message does not look up for module pages","2023-05-15T12:47:31Z","https://github.com/nuxt/nuxt/issues/20801",0.6194853,{"description":2032,"labels":2033,"number":2036,"owner":1991,"repository":1991,"state":2016,"title":2037,"updated_at":2038,"url":2039,"score":2040},"### Environment\n\n- Operating System: `Linux`\r\n- Node Version: `v18.15.0`\r\n- Nuxt Version: `3.3.1`\r\n- Nitro Version: `2.3.1`\r\n- Package Manager: `pnpm@7.8.0`\r\n- Builder: `vite`\r\n- User Config: `modules`, `quasar`, `vite`, `runtimeConfig`, `typescript`, `hooks`\r\n- Runtime Modules: `nuxt-quasar-ui@1.0.4`, `@vueuse/nuxt@9.13.0`\r\n- Build Modules: `-`\n\n### Reproduction\n\nOccurrence in documentation: https://nuxt.com/docs/guide/going-further/custom-routing#using-the-pagesextend-hook\r\n\r\nCorresponding type definition: https://github.com/nuxt/nuxt/blob/main/packages/schema/src/types/hooks.ts#L22-L30\n\n### Describe the bug\n\nThe documentation adds a route using a `component`. While this should work for directly adding it to the router (`RouteRecordRaw[]`), it does not work for adding routes within the `pages:extend` hook and in my testing lead to errors.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2034,2035],{"name":2012,"color":2013},{"name":2001,"color":2002},19940,"Defining a route (NuxtPage) does not permit `component` property though documentation uses it","2023-03-28T10:25:04Z","https://github.com/nuxt/nuxt/issues/19940",0.63327545,{"description":2042,"labels":2043,"number":2052,"owner":1991,"repository":1991,"state":2016,"title":2053,"updated_at":2054,"url":2055,"score":2056},"### Environment\r\n\r\n------------------------------\r\n- Operating System: `Linux`\r\n- Node Version: `v16.14.2`\r\n- Nuxt Version: `3.0.0-rc.11`\r\n- Nitro Version: `0.5.4`\r\n- Package Manager: `npm@7.17.0`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n------------------------------\r\n\r\n### Reproduction\r\n\r\n1. Open this [StackBlitz](https://stackblitz.com/edit/https-github-comnuxtframeworkissues8177)\r\n2. See that no page is shown\r\n3. Expected: Showing the content of `Test.vue`\r\n4. Actual: Showing `\u003CNuxtWelcome>`\r\n\r\n### Describe the bug\r\n\r\nUsing `app/router.options.ts` without a `pages` folder (even with `pages: true` in `nuxt.config.ts`) does utilize the custom router.\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[2044,2045,2048,2049],{"name":1985,"color":1986},{"name":2046,"color":2047},"good first issue","fbca04",{"name":2012,"color":2013},{"name":2050,"color":2051},"pages","00DFB5",15163,"Using only `router.options.ts` should enable page mode","2023-01-19T17:45:31Z","https://github.com/nuxt/nuxt/issues/15163",0.63398576,{"labels":2058,"number":2064,"owner":1991,"repository":1991,"state":2016,"title":2065,"updated_at":2066,"url":2067,"score":2068},[2059,2060,2061],{"name":1985,"color":1986},{"name":2046,"color":2047},{"name":2062,"color":2063},"2.x","d4c5f9",5621,"Default page","2023-01-22T15:50:56Z","https://github.com/nuxt/nuxt/issues/5621",0.6357318,{"description":2070,"labels":2071,"number":2074,"owner":1991,"repository":1991,"state":2016,"title":2075,"updated_at":2076,"url":2077,"score":2078},"### Describe the feature\r\n\r\nNuxt routing using folders is a nightmare for complex routes.\r\nCan I suggest a way to generate our custom router file without using the pages:extend hook?\r\n\r\nThe option to define a custom route in router.options.ts is also not good because Nuxt will not extend any new routes you return from the routes function with metadata defined in definePageMeta.\r\n\r\nWe should be able to choose to use a pre-generated routes with page directories or use our own custom rules routing file. With your own custom routing files we could be able to use everything from vue router like regex for matching route.\r\n\r\nThank you.\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://nuxt.com/docs/community/contribution).\r\n- [X] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[2072,2073],{"name":1985,"color":1986},{"name":2012,"color":2013},25386,"Add a way to use our own custom routes without folder structure","2024-01-26T10:26:59Z","https://github.com/nuxt/nuxt/issues/25386",0.6456421,{"description":2080,"labels":2081,"number":2084,"owner":1991,"repository":1991,"state":2016,"title":2085,"updated_at":2086,"url":2087,"score":2088},"### Environment\r\n\r\njust stackblitz, there is no issue with environment \r\n``` \r\n System:\r\n OS: Linux 5.0 undefined\r\n CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 0 Bytes / 0 Bytes\r\n Shell: 1.0 - /bin/jsh\r\n Binaries:\r\n Node: 16.14.2 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 7.17.0 - /usr/local/bin/npm\r\n npmPackages:\r\n nuxt: ^2.16.2 => 2.16.2 \r\n```\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/github-a2pdyd?file=modules/addpage/_.vue\r\n\r\n### Describe the bug\r\n\r\nI'm not sure if it is a bug but, when there is no 'pages' directory in the Nuxt.js application, modules cannot add or extend routes. \r\n\r\nPlease check reproduction. There is no pages directory and we can see \r\n```\r\n WARN No pages directory found in /home/projects/github-a2pdyd. Using the default built-in page.\r\n```\r\n\r\nBut if you add pages directory then page file from module will be applicable. \r\n\r\nI have an idea to check if the 'pages' directory doesn't exist and then change the pages directory. \r\n## Is there any other option to force enabling it?\r\n\r\n\r\nHere is my temporary solution\r\n```js\r\nif (!fs.existsSync(this.options.srcDir + '/' + this.options.dir.pages)) {\r\n this.options.dir.pages = relative(\r\n this.options.srcDir,\r\n resolve(__dirname, './pages/')\r\n );\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_",[2082,2083],{"name":2001,"color":2002},{"name":2062,"color":2063},19699,"Modules can't add pages when pages directory not exist ","2024-06-30T09:21:58Z","https://github.com/nuxt/nuxt/issues/19699",0.6461379,{"description":2090,"labels":2091,"number":2099,"owner":1991,"repository":1991,"state":2016,"title":2100,"updated_at":2101,"url":2102,"score":2103},"### 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?",[2092,2093,2096],{"name":2012,"color":2013},{"name":2094,"color":2095},"bug","d73a4a",{"name":2097,"color":2098},"🔨 p3-minor","FBCA04",15236,"`\u003CNuxtLayout>` does not work without `pages/` integration","2023-01-19T17:46:38Z","https://github.com/nuxt/nuxt/issues/15236",0.6512983,["Reactive",2105],{},["Set"],["ShallowReactive",2108],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"Hnz5-NaQ4isz_NxSSZzMgTdZfUDSSGkwz7wwDiL8djI":-1},"/nuxt/nuxt/15060"]