Skip to content
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

Splitted layout with error page #7014

Closed
Kolobok12309 opened this issue Feb 27, 2020 · 2 comments · Fixed by #8016
Closed

Splitted layout with error page #7014

Kolobok12309 opened this issue Feb 27, 2020 · 2 comments · Fixed by #8016

Comments

@Kolobok12309
Copy link
Contributor

Kolobok12309 commented Feb 27, 2020

Version

v2.11.0

Reproduction link

https://codesandbox.io/s/nuxt-error-layout-not-change-wzmvf

Steps to reproduce

  1. Set nuxt.config.js build.splitChunks.layouts = true
  2. Create 2 differents pages in one of page do error for example
export default {
  layout: "custom",

  computed: {
    bar() {
      return null.foo.bar.baz;
    }
  }
};
  1. Create layouts for this 2 pages and error.vue page
  2. Add vue.config.errorHandler for not throw every error in browser and redirect to error
  3. Go to page with error, from some other pages
  4. Update page with error

What is expected ?

Both pages after 5 and 6 steps are the same

What is actually happening?

After 5th step:
Normal page with default layout and working nuxt-link
After 6th step:
Page without layout(nuxt-default layout, not your default) and mb hydrate errors

Additional comments?

It happening because layout for error page is not loaded, even if i use context.error, from server i got 500 statusCode and page in which error

For reproduction on sandbox, Click Error page and update this page

@ghost ghost added the cmty:bug-report label Feb 27, 2020
@stale
Copy link

stale bot commented Mar 28, 2020

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as pending will not be automatically marked as stale.

@pi0
Copy link
Member

pi0 commented Sep 10, 2020

Should be resolved with v2.14.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants