How to catch the "Uncaught (in promise) Error..." when beforeEach return false #2587
-
|
Some pages/routes requires redirect to sso/oauth to login, then we redirect away with |
Beta Was this translation helpful? Give feedback.
Answered by
zhaojjiang
Nov 23, 2025
Replies: 1 comment 1 reply
-
|
This could be because in one of your guard you throw an Error and somewhere you do |
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
thanks for your reply.
I tried a new project, debug and compare two projects, move / remove code, and finally found the error is thrown by
router.isReadyin myApp.vue, append catch to it solved the uncaught!