Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue Router logs unprefixed route as not found #2935

Open
Ionys320 opened this issue Apr 25, 2024 · 0 comments
Open

Vue Router logs unprefixed route as not found #2935

Ionys320 opened this issue Apr 25, 2024 · 0 comments

Comments

@Ionys320
Copy link

Environment

Nuxt project info:

------------------------------
- Operating System: Linux
- Node Version:     v18.18.0
- Nuxt Version:     3.11.2
- CLI Version:      3.11.1
- Nitro Version:    2.9.6
- Package Manager:  [email protected]
- Builder:          -
- User Config:      modules, devtools, i18n
- Runtime Modules:  @nuxtjs/[email protected]
- Build Modules:    -
------------------------------

Reproduction

https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-5q4tvj

After launching the project, go to the /meow page (without adding a language prefix).

Describe the bug

Using the prefix strategy and redirecting on no prefix (cf config of the reproduction), Vue Router logs the error written below. I guess it happens because Nuxt i18n didn't handle te route yet, but it's logging a lot of errors for nothing, because after i18n adds the right prefix, the route is found.

Additional context

No response

Logs

WARN  [Vue Router warn]: No match found for location with path "/meow"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant