-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Server response is broken with multi-byte characters and React 18.0.0 #35720
Comments
We're encountering the same error after upgrading to React 18. I found that if you remove I've recreated the error here: https://codesandbox.io/s/stupefied-parm-52t3od Interestingly, just by adding an empty |
After looking into the configuration being loaded, it turns out adding an empty This might be a react bug. |
By removing |
Seems like even if you set I added next.js/packages/next/server/render.tsx Line 465 in a00268e
and reactRoot was still true.
If you set next.js/packages/next/server/render.tsx Line 1356 in a00268e
Makes me think this might be a bug of |
@martinnabhan This is likely due to the use of |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Firefox 98.0.2
How are you deploying your application? (if relevant)
next dev
Describe the Bug
The sever response with multi-byte characters seems to be broken.
This causes the following hydration error:
Expected Behavior
The hydration error should not be occurred. The server response should not contain garbage characters.
To Reproduce
https://github.com/3c1u/nextjs-mb-error-test
The text was updated successfully, but these errors were encountered: