-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
[Next13] Using <header> tag while no <head> tag is present cause hydration errors. #41953
Comments
I was having the exact same issue and can confirm that adding |
@tmilewski thanks :) to be noted, still need to put an empty |
That's what I deduced but it's not clear right now in the doc that a head tag is required at anytime if you don't want to expect weird behaviors. |
also removing the |
This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you. |
This issue has been automatically closed due to two years of inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding! |
Verify canary release
Provide environment information
Operating System:
Platform: linux
Arch: x64
Version: #1 SMP Mon Sep 19 19:14:52 UTC 2022
Binaries:
Node: 16.13.0
npm: 8.1.0
Yarn: N/A
pnpm: 7.14.0
Relevant packages:
next: 13.0.1-canary.0
eslint-config-next: 13.0.0
react: 18.2.0
react-dom: 18.2.0
What browser are you using? (if relevant)
Opera Gx / Chrome
How are you deploying your application? (if relevant)
pnpm run dev (next dev)
Describe the Bug
If you don't have a
<head>
tag in yourRootLayout
, using aheader
tag in any page (even when ahead.tsx
is present) will result in the hydration error below.The error seems to be related to React Dev Tool extension.
Expected Behavior
I expected:
head.tsx
file would get ride of the error.Link to reproduction
https://github.com/vercel/next.js/tree/canary/examples/with-turbopack
To Reproduce
<head>
tag inlayout.tsx
.page.tsx
or component:The text was updated successfully, but these errors were encountered: