Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

212
Vistas
Vue Router Duplicating Routes with Name Undefined

I have Vite apps and routing using automatic routing with https://github.com/hannoeru/vite-plugin-pages. When I console.log() on the router/index.ts file, it shows the right routes. But when I tried to console.log() the routes on component with router.getRoutes() it shows some duplicated route with name: undefined.

router/index.ts

console.log("Routes", newRoutes)

const router = createRouter({
  history: createWebHistory(BASE_URL),
  routes: newRoutes,
})

routes


layouts/default.vue

const router = useRouter();
console.log("Router naon", router.getRoutes());

enter image description here

I have tried looking on my Nuxtjs apps and it seems like it doesn't duplicated anything like this. This became problem because when I tried to push router with name, it doesn't go to the right page.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda