Closed
Description
Link to the code that reproduces this issue
https://github.com/xuerzong/next-title-tag-error
To Reproduce
-
Create app use
npx create-next-app@latest
and then runnpm run dev
. -
Open
http://localhost:3000
,find the<title />
tag, which is in the<body />
.
Current vs. Expected behavior
I tried moving the favicon.ico
from the app folder to the public folder, the <title />
tag is in the correct position.
next-title-issue.mov
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000
Available memory (MB): 16384
Available CPU cores: 8
Binaries:
Node: 23.10.0
npm: 11.2.0
Yarn: 1.22.19
pnpm: 8.6.6
Relevant Packages:
next: 15.3.2 // Latest available version is detected (15.3.2).
eslint-config-next: N/A
react: 19.1.0
react-dom: 19.1.0
typescript: 5.8.3
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Metadata
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response