Is it possible to catch error in vue router guard when next not found route #1885
-
Vue version3.3.0 Link to minimal reproductionhttps://stackblitz.com/edit/vitejs-vite-6r8s84?file=src%2Frouter%2Findex.js Steps to reproduceSo I'm trying to catch error when
What is expected?throw and error for try catch What is actually happening?just warning in console System InfoNo response Any additional comments?No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can check with |
Beta Was this translation helpful? Give feedback.
-
@posva thank you. I tried
|
Beta Was this translation helpful? Give feedback.
You can check with
router.resolve({ name: 'route' })
to see if it exists