Should be possible to set route name
to undefined
#565
Replies: 2 comments
-
Why are you trying to remove the name from the page? Is this just a convenience thing? |
Beta Was this translation helpful? Give feedback.
-
Hi @posva 😀 From my original question on discord:
maybe i'm doing something wrongly. But removing the parent route name works. Repo: https://github.com/ricardo17coelho/vue-router-unplugin-breadcrumbs |
Beta Was this translation helpful? Give feedback.
-
In order to match this case: https://router.vuejs.org/guide/essentials/nested-routes.html#Nested-Named-Routes
Where the parent route name should not be defined, it should be possible to defined the route name as
undefined
definePage({
....
name: undefined,
....
});
This works but theres is an warning in the console & should be the case:
⚠️ [unplugin-vue-router]: route name must be a string literal. Found in "/path/file_01.vue".
⚠️ [unplugin-vue-router]: route name must be a string literal. Found in "/path/file_02.vue".
⚠️ [unplugin-vue-router]: route name must be a string literal. Found in "/path/file_03.vue".
i "reported" this as well here: https://discord.com/channels/325477692906536972/325479452773580800/1298912972734992405
but no reactions so far..
Beta Was this translation helpful? Give feedback.
All reactions