question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning vue router

See original GitHub issue

In all routes with more than one level i have this warning:

[vue-router] Route with name 'usuario-editar-perfil-es-es' does not exist

Examples:

Route: http://localhost:3000/usuario/editar-perfil [vue-router] Route with name ‘usuario-editar-perfil-es-es’ does not exist

Route: http://localhost:3000/usuario/mis-anuncios [vue-router] Route with name ‘usuario-mis-anuncios-es-es’ does not exist

But in routes with only one level it is okay, for example:

http://localhost:3000/ayuda http://localhost:3000/quienes-somos

My Nuxt version is 1.4.0 and nuxt-i18n version is 2.9.1. Configurations:

  defaultLocale: 'es',
  locales: [
    {
      code: 'es',
      iso: 'es-ES',
      name: 'Español',
      langFile: 'es-ES.js'
    },
    {
      code: 'en',
      iso: 'en-US',
      name: 'English',
      langFile: 'en-US.js'
    }
  ],
  loadLanguagesAsync: true,
  langDir: 'locales/'
<div align="right">This question is available on Nuxt.js community (#c46)</div>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:27

github_iconTop GitHub Comments

7reactions
pkorzhcommented, Oct 28, 2018

i have the same problem, usually happens after rebuild.

i was able to narrow down the problem to this code:

this.extendRoutes((routes) => {
  const localizedRoutes = makeRoutes(routes, {
    ...options,
    pagesDir
  })
  routes.splice(0, routes.length)
  routes.unshift(...localizedRoutes)
});

when rebuild starts routes already contains localized routes.

3reactions
jonalxhcommented, May 12, 2021

Is is still happening with the latest version of nuxt and router.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Vue Router warn]: No match found for location with path
I have defined the routes correctly I guess. But it throws me an error in the console saying, [Vue Router warn]: No match...
Read more >
Provide a way to disable warnings for "No match found" when ...
console.warn node_modules/vue-router/dist/vue-router.cjs.js:225 [Vue Router warn]: No match found for location with path "/".
Read more >
Why vue router giving me this warning? - Laracasts
Named Route 'Layout' has a default child route. When navigating to this named route (:to="{name: 'Layout'"), the default child route will not be...
Read more >
Testing Vue Router
The best way to illustrate how to test an app using Vue Router is to let the warnings guide us. The following minimal...
Read more >
How to use vue-router? - CodinGame
VueJS is frontend Library which can be used with any backend Languages. If we want to create fully functional front end application, then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found