-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support overriden route names (through definePageMeta) #81
Comments
Hi @ChronicStone ! I will look at what is generated Nuxt-side as the generated types are based on what Nuxt provides in terms of routing, did you check in the devtools that the route name is changed, or just the component name? |
Hi @victorgarciaesgi, the name in definePageMeta works fine, it's the one that's displayed in the nuxt devtools. Also, if I try to use the default name, the one I've replaced (that autocomplete correctly), then it does not work because that name isn't matching any route. |
Sorry for late response. After tests yeah I have the same as you, displaying in router devtools. But as i'm generating what nuxt gives me i'm wondering if it send the correct router output in the module hook. I'll check and keep you updated |
the |
infortunetly Daniel Roe responded that it's not possible to access it within the module, i'll see how can I work around this |
Since nuxt 3.12 scanPageMeta feature enabled by default, so I think this issue can be closed. |
It looks like the generated types definition does not take into account overriding of route name using definePageMeta. Here's an actual example :
The text was updated successfully, but these errors were encountered: