-
Notifications
You must be signed in to change notification settings - Fork 29.3k
Closed
Labels
Description
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 21.6.0: Wed Aug 10 14:25:27 PDT 2022; root:xnu-8020.141.5~2/RELEASE_X86_64
Binaries:
Node: 16.13.1
npm: 8.19.2
Yarn: 1.22.19
pnpm: N/A
Relevant packages:
next: 13.0.0
eslint-config-next: 13.0.0
react: 18.2.0
react-dom: 18.2.0
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
next dev
Describe the Bug
When a create files
head.js :
export default async function Head({ params }) {
return (
<>
<title>Title head</title>
<meta name="description" content="Generated by head" />
</>
);
}
layout.js :
export default async function RootLayout({ children }) {
return (
<html lang="en">
<head>
<title>Title layout</title>
<meta name="description" content="Generated by layout" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="https://github.com/favicon.ico" />
</head>
<body>{children}</body>
</html>
);
}
Tags < title > and < meta > are not deleted, just add another tags in html structure :
I tried with async function and normal functions,
Thank's
Expected Behavior
<title> and tag replacementLink to reproduction
https://github.com/john-dufrene-dev/test-nextjs13
To Reproduce
npm run dev with this repository
iska9der, alexis78i, enkhee-Osiris and brandonscript