question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hydration Error Using Input Type Email

See original GitHub issue

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System: Platform: linux Arch: x64 Version: #202207312230~1663791054~22.04~28340d4 SMP PREEMPT_DYNAMIC Wed S Binaries: Node: 16.17.0 npm: 8.17.0 Yarn: N/A pnpm: N/A Relevant packages: next: 12.2.5 eslint-config-next: N/A react: 18.1.0 react-dom: 18.1.0

What browser are you using? (if relevant)

Firefox 105.0.3

How are you deploying your application? (if relevant)

No response

Describe the Bug

Hi, does anyone know why I get a hydration error when using the email input type? Unlike email, other formats do not return the error. This seems to occur only in Firefox.

found this same issue on stackoverflow: https://stackoverflow.com/questions/73571827/nextjs-input-hydration-error-when-using-type-email

Expected Behavior

It should display the input email without error.

Link to reproduction

https://github.com/ted-dino/authentication-app/blob/main/pages/register.tsx#L90

To Reproduce

i use npx create-next-app@latest --typescript then create an input type email and open in firefox

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
balazsorban44commented, Oct 11, 2022

Could you test it in Private Mode? I suspect that there might be an addon that modifies the HTML by injection.

0reactions
github-actions[bot]commented, Nov 25, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nextjs - Input hydration error when using type email
Here's an odd one, does anyone know why I'd get a hydration error when using a type of email on an input? This...
Read more >
react-hydration-error - Next.js
The first render is called Hydration which is a feature of React. This can cause the React tree to be out of sync...
Read more >
Fix Next.js “Text content does not match server-rendered ...
Learn how to fix the React hydration error “Text content does not match server-rendered HTML” so you can personalize & transform HTML in ......
Read more >
<input type="email"> - HTML: HyperText Markup Language
A simple email input ... Notice that it's considered valid when empty and when a single validly-formatted email address is entered, but is ......
Read more >
How to catch React Hydration errors on production
If it is a React hydration error then we process it to readable form. We do this by interpolating the error message template...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found