-
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
<title>
shows unwanted comment tags in production environment
#36998
Comments
this issue already fixed #36213 update your next version to v12.1.6 |
* bug: Upgraded Next to fix issue with comments in production output See vercel/next.js#36998 for details * bug: Improved placement of logout menu Also added listener to close the menu when a click is registered outside of the component * refactor: Moved login menu to individual files for better seperation * feat: Implemented logout functionality
Note: React 18.2.0 also includes a change to help identify the issue: facebook/react#24679 |
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
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 20.6.0: Tue Feb 22 21:10:41 PST 2022; root:xnu-7195.141.26~1/RELEASE_X86_64
Binaries:
Node: 14.15.1
npm: 6.14.16
Yarn: 1.22.4
pnpm: N/A
Relevant packages:
next: 12.1.4
react: 18.0.0
react-dom: 18.0.0
What browser are you using? (if relevant)
Chrome
How are you deploying your application? (if relevant)
Vercel
Describe the Bug
In deployed environment on Vercel: I see comment tags
<!-- -->
added in the HTML title when i place<title>
inside<Head>
in next/document. This doesn't seem to happen on local.I do see the warning that:
I have since moved the global title to
_app.tsx
usingnext/head
but wondering if this is still expected behaviorhere's what i have in my
_document.tsx
.Expected Behavior
I should see regular title without comment tags
<title>My title here</title>To Reproduce
Use the following in your
_document.tsx
The text was updated successfully, but these errors were encountered: