Disable Vue Router warnings #10644
Unanswered
CernyMatej
asked this question in
Help/Questions
Replies: 2 comments 2 replies
-
It's not a good solution, but you could suppress/hide this exact warning using https://vuejs.org/api/application.html#app-config-warnhandler The bad thing is that you won't get a warning when there is a Vue Router location missmatch |
Beta Was this translation helpful? Give feedback.
1 reply
-
If your routes doesnt have a route before you insert it, you might need route-matching-syntax
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to disable these Vue Router warnings?
I am dynamically adding the routes in a middleware in Nuxt (based on a db request) and these warnings are very annoying.
They disappear when I use a regular
<a>
tag, but then the page will do a full reload on every navigation.I searched online a lot but sadly didn't find any reasonable solution.
Edit:
Looks like it's not possible... 😕
https://github.com/vuejs/router/blob/f776cbe1098596f53b5c2f696d29e1c02afd1fc1/packages/router/src/router.ts#L543
Beta Was this translation helpful? Give feedback.
All reactions