You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be a bug in Next.js, as this check is not legitimate, since pageProps may not exist in the hydrateProps if the application was wrapped with old-style _app. It was working in 9.4.x and broke in 9.5.0.
`pageProps` should always be defined to ensure everything is working as expected although to prevent a breaking change this adds an additional check before attempting to access `pageProps` before hydration. It also adds tests to prevent regressing on this
Closes: #15647
`pageProps` should always be defined to ensure everything is working as expected although to prevent a breaking change this adds an additional check before attempting to access `pageProps` before hydration. It also adds tests to prevent regressing on this
Closes: vercel#15647
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 29, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Next team has changed the codebase in 9.5.0. They added a check for pageProps in client code.
When _error page is opened, next _error page will throw:
on this line.
This seems to be a bug in Next.js, as this check is not legitimate, since
pageProps
may not exist in thehydrateProps
if the application was wrapped with old-style _app. It was working in 9.4.x and broke in 9.5.0.To Reproduce
https://codesandbox.io/s/blissful-wave-lpxv9
I also created a repo: https://github.com/skoob13/next-redux-wrapper/commit/2b106126659195b79725d2d7f321ae4794d8a3c3.
Steps to reproduce:
Expected behavior
Error page should open.
The text was updated successfully, but these errors were encountered: