-
-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom routes with nuxt extends not working #1837
Comments
Any news on this? Or can you point me in a direction to fix this? |
Any news about this issue?! Our project is stucked into it! |
Until this is resolved, you could just not use the pages as extend or create duplicate files. But yeah we are too stuck with this. I'll try to open a PR if i find a solution. |
@kazupon I have tried to fix this issue, but got kinda stuck to find the right direction of the fix. The problem here is that in
What i tried is to add the payers to the pagesDir, but that mean that i'll have to define the pagesDir as an array, which will break the rest of the code ofcourse. This is what i tried:
As i see it we have two options:
|
Resolved with: #1925 |
Environment
Darwin
v16.14.2
3.1.1
2.1.1
[email protected]
vite
-
-
-
Reproduction
https://stackblitz.com/edit/nuxt-starter-5ar22s?file=nuxt.config.ts,base%2Fnuxt.config.ts,base%2Froutes%2FRoutes.js,pages%2Findex.vue
Describe the bug
When the extends functionality from Nuxt 3 is used, and we have a pages directory when is extended into the source. The pages inside the extend are not found by the i18n module.
The pages inside the root work fine. I am on the latest version (8.0.0-beta.9)
You'll see in the reproduction that there is a
login
andregister
to showcase this.The
login.vue
is located inside the extendbase
directory, and is not found, also the terminal gives a warning:[@nuxtjs/i18n]: Couldn't find AnalizedNuxtPageMeta by NuxtPage (/login), so no custom route for it
The
register.vue
is located inside the root, and works fine.Additional context
If this is something that needs to be fixed in Nuxt 3, is there a workaround for this?
Also you can see what's wrong on the homepage, where the link for login is referring to
/login
and not/aanmelden
, as it is set inroutes/Routes.js
It might be a bit related to: #1743, however this is not really a RFC.
Logs
No response
The text was updated successfully, but these errors were encountered: