Server side Error.getInitialProps result cannot be hydrated into client error page #44844
Open
1 task done
Labels
template: bug
A user has filled out the bug report template. Issue needs triaging
Verify canary release
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000
Binaries:
Node: 19.4.0
npm: 9.2.0
Yarn: 1.22.19
pnpm: 7.24.3
Relevant packages:
next: 13.1.2
eslint-config-next: 13.1.1
react: 18.2.0
react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
Data fetching (gS(S)P, getInitialProps)
Link to the code that reproduces this issue
https://github.com/tangye1234/next.js/tree/fix/render-error-on-page-error/test/integration/render-error-on-page-error/pages
To Reproduce
We need to reproduce it on production build, not dev phase.
browser the localhost, the error page cannot be hydrated properly.
the console prints a hydration error(react minify error)
Describe the Bug
The bug is firstly introduced by the bugfix: #21240
That bugfix is to solve the top module error in client render/hydration.
In fact, the
renderErrorProps.props?.err
can never be existed, which breaks the original intents.Expected Behavior
Which browser are you using? (if relevant)
Chrome 108
How are you deploying your application? (if relevant)
next start in nodejs
The text was updated successfully, but these errors were encountered: