René's URL Explorer Experiment


Title: Turbopack build error: formatMetadataHeaders causes Turbopack build failure in Next.js 16 canary · Issue #7461 · clerk/javascript · GitHub

Open Graph Title: Turbopack build error: formatMetadataHeaders causes Turbopack build failure in Next.js 16 canary · Issue #7461 · clerk/javascript

X Title: Turbopack build error: formatMetadataHeaders causes Turbopack build failure in Next.js 16 canary · Issue #7461 · clerk/javascript

Description: Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used patch-package to patch @clerk/nextjs@6.36.2 for the project I'm working on. When building with Next.js 16.1.0-canary.21 and Turbopack enabled, the build fails because fo...

Open Graph Description: Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used patch-package to patch @clerk/nextjs@6.36.2 for the project I'm working on. When building with Next.js 16.1.0-canary.21 and Turbo...

X Description: Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used patch-package to patch @clerk/nextjs@6.36.2 for the project I'm working on. When building with Next.js 16.1.0-canary.21 and T...

Opengraph URL: https://github.com/clerk/javascript/issues/7461

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Turbopack build error: formatMetadataHeaders causes Turbopack build failure in Next.js 16 canary","articleBody":"Hi! 👋 \n      \nFirstly, thanks for your work on this project! 🙂\n\nToday I used [patch-package](https://github.com/ds300/patch-package) to patch `@clerk/nextjs@6.36.2` for the project I'm working on.\n\nWhen building with Next.js 16.1.0-canary.21 and Turbopack enabled, the build fails because `formatMetadataHeaders` in `keyless-custom-headers.js` is not recognized as an async function. Making it async resolves the issue.\n\nHere is the diff that solved my problem:\n\n```diff\ndiff --git a/node_modules/@clerk/nextjs/dist/esm/server/keyless-custom-headers.js b/node_modules/@clerk/nextjs/dist/esm/server/keyless-custom-headers.js\nindex 11ccc7a..8994dad 100644\n--- a/node_modules/@clerk/nextjs/dist/esm/server/keyless-custom-headers.js\n+++ b/node_modules/@clerk/nextjs/dist/esm/server/keyless-custom-headers.js\n@@ -67,7 +67,7 @@ function getNextVersion() {\n     return void 0;\n   }\n }\n-function formatMetadataHeaders(metadata) {\n+async function formatMetadataHeaders(metadata) {\n   const headers2 = new Headers();\n   if (metadata.nodeVersion) {\n     headers2.set(\"Clerk-Node-Version\", metadata.nodeVersion);\n```\n\n\u003cem>This issue body was [partially generated by patch-package](https://github.com/ds300/patch-package/issues/296).\u003c/em>\n","author":{"url":"https://github.com/namodynamic","@type":"Person","name":"namodynamic"},"datePublished":"2025-12-15T11:36:57Z","url":"https://github.com/clerk/javascript/issues/7461"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9292f246-baab-50a4-a0d0-c92a0b3c77d9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB84:11DC7C:12AA03B:19760E3:6AFB6C88
html-safe-nonce4934bc960f933cf3fc8dcb30cbcb8b05e76f59fc35cc3f6943347b5ddf73f14a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjg0OjExREM3QzoxMkFBMDNCOjE5NzYwRTM6NkFGQjZDODgiLCJ2aXNpdG9yX2lkIjoiNTU4ODc1NTgwOTc5MDgxNTM2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbc9d170df61e1039a9e96b5be5f28e48351537c2dd9f6bcfa9c13e78d60a5a02
hovercard-subject-tagissue:3730023806
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/clerk/javascript/7461/issue_layout
twitter:imagehttps://opengraph.githubassets.com/04266211cdbfe45e7a46b00bbaa98ff7d27c062b3f9592935f43ce3ae1027b6a/clerk/javascript/issues/7461
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/04266211cdbfe45e7a46b00bbaa98ff7d27c062b3f9592935f43ce3ae1027b6a/clerk/javascript/issues/7461
og:image:altHi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used patch-package to patch @clerk/nextjs@6.36.2 for the project I'm working on. When building with Next.js 16.1.0-canary.21 and Turbo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenamodynamic
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
turbo-cache-controlno-preview
go-importgithub.com/clerk/javascript git https://github.com/clerk/javascript.git
octolytics-dimension-user_id49538330
octolytics-dimension-user_loginclerk
octolytics-dimension-repository_id438331492
octolytics-dimension-repository_nwoclerk/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id438331492
octolytics-dimension-repository_network_root_nwoclerk/javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/clerk/javascript/issues/7461#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fissues%2F7461
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fissues%2F7461
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/issues/7461
Reloadhttps://github.com/clerk/javascript/issues/7461
Reloadhttps://github.com/clerk/javascript/issues/7461
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues45 (45)https://github.com/clerk/javascript/issues
Pull requests110 (110)https://github.com/clerk/javascript/pulls
Discussionshttps://github.com/clerk/javascript/discussions
Actionshttps://github.com/clerk/javascript/actions
Security and quality6 (6)https://github.com/clerk/javascript/security
Insightshttps://github.com/clerk/javascript/pulse
https://github.com/clerk/javascript
New issuehttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/7461
New issuehttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/7461
Turbopack build error: formatMetadataHeaders causes Turbopack build failure in Next.js 16 canaryhttps://github.com/clerk/javascript/issues/7461#top
https://github.com/namodynamic
namodynamichttps://github.com/namodynamic
on Dec 15, 2025https://github.com/clerk/javascript/issues/7461#issue-3730023806
patch-packagehttps://github.com/ds300/patch-package
partially generated by patch-packagehttps://github.com/ds300/patch-package/issues/296
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
on Dec 15, 2025https://github.com/clerk/javascript/issues/7461#issuecomment-3655164687
coderabbitaihttps://coderabbit.ai?utm_source=cr_app&utm_medium=github
Example 1https://github.com/coderabbitai/git-worktree-runner/issues/29#issuecomment-3589134556
Example 2https://github.com/coderabbitai/git-worktree-runner/issues/12#issuecomment-3606665167
Module not found: Can't resolve 'path' in keyless-telemetry #6675https://github.com/clerk/javascript/issues/6675
useUser from @clerk/nextjs causes build error with Next.js 15.3.5 ("Module not found: ...loadable") #6293https://github.com/clerk/javascript/issues/6293
@clerk/nextjs performance regression/hitting rate limits in next@15 due to fetch default behavior change #4894https://github.com/clerk/javascript/issues/4894
Clerk Middleware causes build warnings with Next.js Pages router #6543https://github.com/clerk/javascript/issues/6543
Bug Report: Infinite Redirect Loop in Clerk Middleware for Next.js #5316https://github.com/clerk/javascript/issues/5316
andrzej-woofhttps://github.com/andrzej-woof
Porio95https://github.com/Porio95
sigmachiralityhttps://github.com/sigmachirality
doug-stewarthttps://github.com/doug-stewart
ALWISHARIFFhttps://github.com/ALWISHARIFF
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
on Dec 15, 2025https://github.com/clerk/javascript/issues/7461#issuecomment-3655673582
@namodynamichttps://github.com/namodynamic
#7445https://github.com/clerk/javascript/pull/7445
jacekradkohttps://github.com/jacekradko
completedhttps://github.com/clerk/javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Dec 15, 2025https://github.com/clerk/javascript/issues/7461#event-21566766489
Sign up for freehttps://github.com/signup?return_to=https://github.com/clerk/javascript/issues/7461
Sign in to commenthttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/7461
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.