René's URL Explorer Experiment


Title: fix(react): Use globalThis instead of bare global in the browser Clerk loader by jacekradko · Pull Request #8909 · clerk/javascript · GitHub

Open Graph Title: fix(react): Use globalThis instead of bare global in the browser Clerk loader by jacekradko · Pull Request #8909 · clerk/javascript

X Title: fix(react): Use globalThis instead of bare global in the browser Clerk loader by jacekradko · Pull Request #8909 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - fix(react): Use globalThis instead of bare global in the browser Clerk loader by jacekradko · Pull Request #8909 · clerk/javascript

Open Graph Description: Fixes #8871. <ClerkProvider> crashed in production builds (TanStack Start, React Router) with ReferenceError: global is not defined. The loader read a bare global.Clerk that only resolved via...

X Description: Fixes #8871. &lt;ClerkProvider&gt; crashed in production builds (TanStack Start, React Router) with ReferenceError: global is not defined. The loader read a bare global.Clerk that only reso...

Opengraph URL: https://github.com/clerk/javascript/pull/8909

X: @github

direct link

Domain: github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:07ccbe78-ce8c-6a73-cd3b-f97815bdd735
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD3B6:3833D:C00EC6:114769C:6AFAC58C
html-safe-nonce379641880e3a136c469828ec3493bb2f2b72b37c157cb9da2c19b107876cfaa2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0I2OjM4MzNEOkMwMEVDNjoxMTQ3NjlDOjZBRkFDNThDIiwidmlzaXRvcl9pZCI6Ijc1MjUxMDg3MDA5OTQ1MjA0NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccc5dd0f2a7893ae05ad22e070c7eb61ae72b9514893847b1946abddb59bdee46
hovercard-subject-tagpull_request:3887762299
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/clerk/javascript/8909/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/76eb583491aeec9271b61dd3cd26fa59fd5f9fa26e18e461ddb7c2de7f57ea55/clerk/javascript/pull/8909
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/76eb583491aeec9271b61dd3cd26fa59fd5f9fa26e18e461ddb7c2de7f57ea55/clerk/javascript/pull/8909
og:image:altFixes #8871. <ClerkProvider> crashed in production builds (TanStack Start, React Router) with ReferenceError: global is not defined. The loader read a bare global.Clerk that only resolved via...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejacekradko
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
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
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/8909#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F8909
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%2Fpull%2F8909
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/pull/8909
Reloadhttps://github.com/clerk/javascript/pull/8909
Reloadhttps://github.com/clerk/javascript/pull/8909
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues44 (44)https://github.com/clerk/javascript/issues
Pull requests112 (112)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
jacekradkohttps://github.com/jacekradko
mainhttps://github.com/clerk/javascript/tree/main
jacek/fix-react-global-shim-8871https://github.com/clerk/javascript/tree/jacek/fix-react-global-shim-8871
Conversationhttps://github.com/clerk/javascript/pull/8909
Commits1 (1)https://github.com/clerk/javascript/pull/8909/commits
Checkshttps://github.com/clerk/javascript/pull/8909/checks
Files changedhttps://github.com/clerk/javascript/pull/8909/files
fix(react): Use globalThis instead of bare global in the browser Clerk loaderhttps://github.com/clerk/javascript/pull/8909#top
jacekradkohttps://github.com/jacekradko
mainhttps://github.com/clerk/javascript/tree/main
jacek/fix-react-global-shim-8871https://github.com/clerk/javascript/tree/jacek/fix-react-global-shim-8871
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
Jun 18, 2026https://github.com/clerk/javascript/pull/8909#issue-4688235792
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
#8871https://github.com/clerk/javascript/issues/8871
#8177https://github.com/clerk/javascript/pull/8177
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Jun 18, 2026https://github.com/clerk/javascript/pull/8909#issuecomment-4736863014
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
3ab67adhttps://github.com/clerk/javascript/commit/3ab67adef249af8874b6b654dd759313d3f5ef9b
Click here to learn what changesets arehttps://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md
Click here if you're a maintainer who wants to add another changeset to this PRhttps://github.com/clerk/javascript/new/jacek/fix-react-global-shim-8871?filename=.changeset/honest-rice-serve.md&value=---%0A%22%40clerk%2Freact%22%3A%20patch%0A---%0A%0Afix(react)%3A%20Use%20globalThis%20instead%20of%20bare%20global%20in%20the%20browser%20Clerk%20loader%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
Jun 18, 2026https://github.com/clerk/javascript/pull/8909#issuecomment-4736863134
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
Vercel for GitHubhttps://vercel.link/github-learn-more
clerk-js-sandboxhttps://vercel.com/clerk-production/clerk-js-sandbox
https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667
Readyhttps://vercel.com/clerk-production/clerk-js-sandbox/6ZkH49QZWdkYXNpZjRBBCnipbGde
Previewhttps://clerk-js-sandbox-git-jacek-fix-react-global-shim-8871.clerkstage.dev
Commenthttps://vercel.live/open-feedback/clerk-js-sandbox-git-jacek-fix-react-global-shim-8871.clerkstage.dev?via=pr-comment-feedback-link
swingsethttps://vercel.com/clerk-production/swingset
https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667
Readyhttps://vercel.com/clerk-production/swingset/CGg5iCv7Bf1PtLFPrc4artdBh1Kf
Previewhttps://swingset-git-jacek-fix-react-global-shim-8871.clerkstage.dev
Commenthttps://vercel.live/open-feedback/swingset-git-jacek-fix-react-global-shim-8871.clerkstage.dev?via=pr-comment-feedback-link
https://vercel.com/vercel-agent/request-review?owner=clerk&repo=javascript&pr=8909
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jun 18, 2026https://github.com/clerk/javascript/pull/8909#issuecomment-4736863966
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
https://app.coderabbit.ai/change-stack/clerk/javascript/pull/8909?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack
27fc09ahttps://github.com/clerk/javascript/commit/27fc09a895804e7fdde51819928cad5c332a3ced
3ab67adhttps://github.com/clerk/javascript/commit/3ab67adef249af8874b6b654dd759313d3f5ef9b
TanStack Start ClerkProvider can fail when global shim is split into lazy chunk #8871https://github.com/clerk/javascript/issues/8871
clerk/javascript#8773https://github.com/clerk/javascript/pull/8773
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-oi5g01ke3.clerkstage.dev
Preview – clerk-js-sandboxhttps://clerk-js-sandbox-oi5g01ke3.clerkstage.dev
June 18, 2026 00:59https://github.com/clerk/javascript/pull/8909#event-26888151078
View deploymenthttps://clerk-js-sandbox-oi5g01ke3.clerkstage.dev
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
react https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Areact
Jun 18, 2026https://github.com/clerk/javascript/pull/8909#event-26888153614
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://swingset-66zgi4f9d.clerkstage.dev
Preview – swingsethttps://swingset-66zgi4f9d.clerkstage.dev
June 18, 2026 01:00https://github.com/clerk/javascript/pull/8909#event-26888180570
View deploymenthttps://swingset-66zgi4f9d.clerkstage.dev
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jun 18, 2026https://github.com/clerk/javascript/pull/8909#issuecomment-4736876155
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
Break Checkhttps://github.com/clerk/break-check
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
fix(react): Use globalThis instead of bare global in the browser Cler…https://github.com/clerk/javascript/pull/8909/commits/3ab67adef249af8874b6b654dd759313d3f5ef9b
3ab67adhttps://github.com/clerk/javascript/pull/8909/commits/3ab67adef249af8874b6b654dd759313d3f5ef9b
#8871https://github.com/clerk/javascript/issues/8871
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
force-pushedhttps://github.com/clerk/javascript/compare/27fc09a895804e7fdde51819928cad5c332a3ced..3ab67adef249af8874b6b654dd759313d3f5ef9b
27fc09ahttps://github.com/clerk/javascript/commit/27fc09a895804e7fdde51819928cad5c332a3ced
3ab67adhttps://github.com/clerk/javascript/commit/3ab67adef249af8874b6b654dd759313d3f5ef9b
Compare https://github.com/clerk/javascript/compare/27fc09a895804e7fdde51819928cad5c332a3ced..3ab67adef249af8874b6b654dd759313d3f5ef9b
June 18, 2026 01:06https://github.com/clerk/javascript/pull/8909#event-26888324060
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-lwzj6frez.clerkstage.dev
Preview – clerk-js-sandboxhttps://clerk-js-sandbox-lwzj6frez.clerkstage.dev
June 18, 2026 01:07https://github.com/clerk/javascript/pull/8909#event-26888341508
View deploymenthttps://clerk-js-sandbox-lwzj6frez.clerkstage.dev
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://swingset-8gdcd5i2x.clerkstage.dev
Preview – swingsethttps://swingset-8gdcd5i2x.clerkstage.dev
June 18, 2026 01:08https://github.com/clerk/javascript/pull/8909#event-26888368939
View deploymenthttps://swingset-8gdcd5i2x.clerkstage.dev
https://github.com/wobsoriano
wobsorianohttps://github.com/wobsoriano
Jun 18, 2026 https://github.com/clerk/javascript/pull/8909#pullrequestreview-4520933527
View reviewed changes https://github.com/clerk/javascript/pull/8909/files/3ab67adef249af8874b6b654dd759313d3f5ef9b
wobsorianohttps://github.com/wobsoriano
https://github.com/clerk/javascript/pull/8909#pullrequestreview-4520933527
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
fb11e32https://github.com/clerk/javascript/commit/fb11e32c0945423cc392586662a0b1a2beec4635
Jun 18, 2026https://github.com/clerk/javascript/pull/8909#event-26889440797
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
June 18, 2026 01:58https://github.com/clerk/javascript/pull/8909#event-26889441677
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Jun 18, 2026 https://github.com/clerk/javascript/pull/8909#ref-pullrequest-4688510026
ci(repo): Version packages #8910 https://github.com/clerk/javascript/pull/8910
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Aug 21, 2026 https://github.com/clerk/javascript/pull/8909#ref-pullrequest-5217538278
chore: merge deploy/auth-fix into develop deangilmoreremix/remix-new-editor#11 https://github.com/deangilmoreremix/remix-new-editor/pull/11
Deployedhttps://swingset-8gdcd5i2x.clerkstage.dev
vercel[bot]https://github.com/apps/vercel
View deployment https://swingset-8gdcd5i2x.clerkstage.dev
Deployedhttps://clerk-js-sandbox-lwzj6frez.clerkstage.dev
vercel[bot]https://github.com/apps/vercel
View deployment https://clerk-js-sandbox-lwzj6frez.clerkstage.dev
https://github.co/hiddenchars
https://github.com/clerk/javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F8909
https://github.com/wobsoriano
wobsoriano https://github.com/wobsoriano
https://github.com/clerk/javascript/pull/8909/files/3ab67adef249af8874b6b654dd759313d3f5ef9b
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
react https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Areact
TanStack Start ClerkProvider can fail when global shim is split into lazy chunk https://github.com/clerk/javascript/issues/8871
Please reload this pagehttps://github.com/clerk/javascript/pull/8909
https://github.com/jacekradko
https://github.com/wobsoriano
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.