Rendering Nuxt error page when middleware throws in client-side
It appears that the Nuxt error page only renders when I do a full page load, but if I'm just navigating to the failing route on the client-side, all it does is cancel the route transition and show an error in the console.
How can I make a middleware with
abortNavigation()
show the nuxt error page when on clientside as well?1 Reply
Doesn't appear that this is possible. You can set
fatal: true
, but the error page is going to render at the current route, not at the new one, and error.stackTrace
is rendered differently as well - when created during SSR it was HTML tags in it for proper styling