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

Error: Text content does not match server-rendered HTML when developing on Windows #12749

Open
1 of 2 tasks
zznam opened this issue Apr 16, 2024 · 4 comments
Open
1 of 2 tasks
Assignees
Labels
bug 🐛 Something isn't working dev required This requires developer resources low priority This has a low priority

Comments

@zznam
Copy link

zznam commented Apr 16, 2024

Describe the bug

I follow the instruction to run the project locally on my Windows 11 PC (node v20.12.2)
But the following bug appear each time I visit any page and the label strings is not translated.

Unhandled Runtime Error
Error: Text content does not match server-rendered HTML.

See more info here: https://nextjs.org/docs/messages/react-hydration-error

Call Stack
checkForUnmatchedText
node_modules\react-dom\cjs\react-dom.development.js (9647:0)
diffHydratedProperties
node_modules\react-dom\cjs\react-dom.development.js (10310:0)
hydrateInstance
node_modules\react-dom\cjs\react-dom.development.js (11306:0)
prepareToHydrateHostInstance
node_modules\react-dom\cjs\react-dom.development.js (12564:0)
completeWork
node_modules\react-dom\cjs\react-dom.development.js (22181:0)
...

To reproduce

  1. yarn
  2. yarn dev
  3. See error

Expected behavior

The page should render correctly

Screenshots

image

Desktop (please complete the following information)

  • Windows 11 PC (node v20.12.2)

Smartphone (please complete the following information)

No response

Additional context

No response

Would you like to work on this issue?

  • Yes
  • No
@zznam zznam added the bug 🐛 Something isn't working label Apr 16, 2024
@github-actions github-actions bot added the needs triage 📥 This issue needs triaged before being worked on label Apr 16, 2024
@Abhinav-Chdhary
Copy link

This is not an issue, you have to configure your .env file. How to do that? It's all documented in .env.example

@wackerow
Copy link
Member

This is a known issue, though realizing not one we have tracked on GitHub anywhere... it's not Windows-specific, nor .env-related, but a wider problem with how some of our pages are handled through Next.js SSR. cc: @pettinarip Is there another place I'm missing where we're tracking this at all?

@wackerow wackerow added low priority This has a low priority dev required This requires developer resources and removed needs triage 📥 This issue needs triaged before being worked on labels Apr 26, 2024
@wackerow
Copy link
Member

@pettinarip Went ahead and assigned you in the meantime if you wouldn't mind weighing in on how to approach this one. Feel free to re-assign as you see fit.

@corwintines
Copy link
Member

Just adding @zznam, while we know about this issue, its not blocking. You can close the popup in the browser and work. You'll get this on refresh. It makes for a bad developer experience, so we should look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working dev required This requires developer resources low priority This has a low priority
Projects
None yet
Development

No branches or pull requests

5 participants