Conflicting page & metadata at /sitemap
when Turbopack is enabled (src/app/sitemap.ts vs src/app/sitemap/page.tsx)
#78609
Labels
linear: turbopack
Confirmed issue that is tracked by the Turbopack team.
Turbopack
Related to Turbopack with Next.js.
Link to the code that reproduces this issue
https://github.com/igz0/nextjs-sitemap-conflict-turbopack
To Reproduce
Create a fresh Next.js v15.3.1 project with the App Router.
Add src/app/sitemap.ts:
pnpm dev # or npm run dev / yarn dev
Current vs. Expected behavior
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.4.0: Fri Apr 11 18:32:50 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T6041 Available memory (MB): 49152 Available CPU cores: 12 Binaries: Node: 20.15.1 npm: 10.7.0 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 15.4.0-canary.12 // Latest available version is detected (15.4.0-canary.12). 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)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
The text was updated successfully, but these errors were encountered: