Warning vue router
See original GitHub issueIn 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:
- Created 5 years ago
- Comments:27
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i have the same problem, usually happens after rebuild.
i was able to narrow down the problem to this code:
when rebuild starts
routes
already contains localized routes.Is is still happening with the latest version of nuxt and router.