[Vuejs]-Vue Router Duplicating Routes with Name Undefined

0👍

I did a bit some digging and turns out this is being caused by https://github.com/JohnCampionJr/vite-plugin-vue-layouts – the plugin basically takes your routes and sets the layout as the component. It then creates a new child route with the original route. There are a few issues about this on his github (issues/55, issue/92). I can’t work out if it’s the intended behaviour or not as I think the original route should really be removed and the route with the new layout and child route should replace it.

Leave a comment