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
error page not shown after abortNavigation #15053
Comments
Here's an updated repro. Hope that helps. |
@danielroe Thanks a lot. I just wanted to point out that the documentation is not clear about requiring you to return: |
we should fix that! |
I am having the same issue. @danielroe The same is not working if we use How would it work if we use Here's the repro https://stackblitz.com/edit/github-i5nygk-gnbczq?file=pages%2Findex.vue |
@jahidanowar You are using 3.0.0-rc11. Here's an updated stackblitz: https://stackblitz.com/edit/github-i5nygk-tpvqbg. Note also this linked issue: #15432. |
Well, it seems like it's working fine. I think the issue could be closed. |
I think the remaining edge case is that perhaps a fatal error thrown in middleware with |
Environment
Windows_NT
v14.19.1
3.0.0-rc.11
0.5.4
yarn@1.22.15
vite
-
-
-
Reproduction
https://stackblitz.com/edit/github-i5nygk?file=error.vue
Describe the bug
When throwing an error or aborting navigation from middleware nuxt does not render the error.vue page but instead shows the default nuxt error page. If this is not the intended usage of abortNavigation please provide an alternative.
using showError on a page using middlewares would trigger the same issue.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: