Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!