Getting [Vue Router warn]: Finding ancestor route "/messages" failed for "/messages" after upgrading to 4.3.3 #2282
-
After the upgrade to 4.3.3 with the switch to binary search for insertMatcher (#2137) by @skirtles-code I am getting three of messages like this in dev console:
I have a big project with a lot of routes (plenty of nested routes and such) and having trouble replicating this in a smaller project. If I remove some random routes before the ones that show up in warnings, these warnings still show up with other routes. This and the fact that this warning has a comment Would be happy if someone helps me out here or points me in the right direction to replicate this issue so I can understand what's wrong with my route setup or file a proper bug report. Unfortunately, sharing my project in its existing state is not very feasible. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Could it be the same problem as #2266? That was caused by having two routes with the same There's a pending PR, #2267, that is intended to help identify this problem. |
Beta Was this translation helpful? Give feedback.
-
This indeed was the case of name duplicated both on parent and child. Thank you! |
Beta Was this translation helpful? Give feedback.
Could it be the same problem as #2266? That was caused by having two routes with the same
name
, with one being a descendant of the other.There's a pending PR, #2267, that is intended to help identify this problem.