-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Vue Router warn]: Finding ancestor route "/:path(.*)*" failed for "/:path(.*)*" #2266
Comments
I think I managed to reproduce this: But it only happens if there are two routes with the same |
names must be unique, this is what you need to write instead: {
path: '/:path(.*)*',
component: LAYOUT,
meta: { title: 'ErrorPage' },
children:
[
{
path: '',
name: PAGE_NOT_FOUND_NAME,
component: EXCEPTION_COMPONENT,
meta: { title: 'ErrorPage' },
},
],
} |
谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction
RT
Steps to reproduce the bug
After upgrading to the latest version
{ path: '/:path(.*)*', name: PAGE_NOT_FOUND_NAME, component: LAYOUT, meta: { title: 'ErrorPage', }, children: [ { path: '/:path(.*)*', name: PAGE_NOT_FOUND_NAME, component: EXCEPTION_COMPONENT, meta: { title: 'ErrorPage', }, }, ], }
Expected behavior
no warning
Actual behavior
warning log
Additional information
No response
The text was updated successfully, but these errors were encountered: