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
when using $nuxt.error from client side, error page will not respect layout #7743
Comments
As far as I understand it, it is expected behavior as the error component is a page component which, like other pages uses the default layout. You find in the docs:
For having an extra error page layout you have to create a layout and assign it in your error page through the |
as explained it works fine when I refresh. |
Yes, it seems that it still exists - I just experienced the same in a quick test. |
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
This issue still exists and can't seem to find a open issue about this. |
Versions
Reproduction
Additional Details
nuxt as SPA mode, so no server side code
f something went wrong I use $nuxt.error( ... ) to display the error. I use it if something fatal happens and user should not continue.(e.g. on refreshing the token user is no longer have access).
error page
/layouts/error.vue
empty layout
/layouts/empty.vue
Steps to reproduce
What is Expected?
error page should be displayed with empty layout
What is actually happening?
error page is displayed with default layout
or with the layout used by the current page.
The text was updated successfully, but these errors were encountered: