René's URL Explorer Experiment


Title: SvelteKit Cloudflare adapter failing · Issue #8291 · getsentry/sentry-javascript · GitHub

Open Graph Title: SvelteKit Cloudflare adapter failing · Issue #8291 · getsentry/sentry-javascript

X Title: SvelteKit Cloudflare adapter failing · Issue #8291 · getsentry/sentry-javascript

Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...

Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...

X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8291

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SvelteKit Cloudflare adapter failing","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/sveltekit\n\n### SDK Version\n\n7.54.0\n\n### Framework Version\n\n@sveltejs/kit == 1.20.0\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\nhooks.client.ts...\r\n```typescript\r\nSentry.init({\r\n\tdsn: config.sentryDSN,\r\n\tenvironment: config.env,\r\n\ttracesSampleRate: 1,\r\n\treplaysSessionSampleRate: 0.1,\r\n\treplaysOnErrorSampleRate: 1,\r\n\tintegrations: [new Sentry.Replay()]\r\n});\r\n```\r\n\r\nhooks.server.ts\r\n```typescript\r\nSentry.init({\r\n\tdsn: config.sentryDSN,\r\n\tenvironment: config.env,\r\n\ttracesSampleRate: 1\r\n});\r\n```\n\n### Steps to Reproduce\n\n1. manually setup the sveltekit + sentry integration\r\n2. verify it's working locally\r\n3. install adapter-cloud flare and update svelte.config.ts according to [sveltekit documentation](https://kit.svelte.dev/docs/adapter-cloudflare#usage) -- partial example provided below.\r\n4. deploy to cloudflare (can't easily give you a way to reproduce this portion, but let me know if I can additional details\r\n\r\nsample svelte.config.js\r\n```javascript\r\nimport adapter from '@sveltejs/adapter-cloudflare';\r\nimport { vitePreprocess } from '@sveltejs/kit/vite';\r\n\r\n/** @type {import('@sveltejs/kit').Config} */\r\nconst config = {\r\n\t// Consult https://kit.svelte.dev/docs/integrations#preprocessors\r\n\t// for more information about preprocessors\r\n\tpreprocess: vitePreprocess(),\r\n\tkit: {\r\n\t\tadapter: adapter()\r\n};\r\n\r\nexport default config;\r\n```\n\n### Expected Result\n\nSuccessful build & deploy from cloudflare pages\n\n### Actual Result\n\n```\r\n16:37:00.142 | > Using @sveltejs/adapter-cloudflare\r\n-- | --\r\n16:37:00.627 | ✘ [ERROR] Could not resolve \"$app/stores\"\r\n16:37:00.628 |  \r\n16:37:00.628 | node_modules/.pnpm/@sentry+sveltekit@7.54.0_@sveltejs+kit@1.20.0_svelte@3.59.1/node_modules/@sentry/sveltekit/esm/client/router.js:3:33:\r\n16:37:00.628 | 3 │ import { page, navigating } from '$app/stores';\r\n16:37:00.628 | ╵                                  ~~~~~~~~~~~~~\r\n16:37:00.628 |  \r\n16:37:00.629 | You can mark the path \"$app/stores\" as external to exclude it from the bundle, which will remove this error.\r\n16:37:00.629 |  \r\n16:37:01.102 | error during build:\r\n16:37:01.103 | Error: Build failed with 1 error:\r\n16:37:01.104 | node_modules/.pnpm/@sentry+sveltekit@7.54.0_@sveltejs+kit@1.20.0_svelte@3.59.1/node_modules/@sentry/sveltekit/esm/client/router.js:3:33: ERROR: Could not resolve \"$app/stores\"\r\n```","author":{"url":"https://github.com/lucasnad27","@type":"Person","name":"lucasnad27"},"datePublished":"2023-06-05T22:50:45Z","url":"https://github.com/getsentry/sentry-javascript/issues/8291"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ce73cd80-9af3-1ad9-fa96-225a91f82a09
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEA80:C727A:296D065:357F95C:6B0402E1
html-safe-noncefc870af7026a40e97a41dad7ee85e77d4bc8ff0fb52e739f7513e0b75035a3ce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTgwOkM3MjdBOjI5NkQwNjU6MzU3Rjk1Qzo2QjA0MDJFMSIsInZpc2l0b3JfaWQiOiI2MjAyMDExNDc4MjAwMTU2ODk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5860f7a8c6bfa56f4e0918e450ee58eb053a3c5966e2671c373f570b4d6b3bdc
hovercard-subject-tagissue:1742741366
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/getsentry/sentry-javascript/8291/issue_layout
twitter:imagehttps://opengraph.githubassets.com/29a2323ef3691111e8477b4ab505c2f41611fc822531ccc21aea2b1ff0ef79e9/getsentry/sentry-javascript/issues/8291
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/29a2323ef3691111e8477b4ab505c2f41611fc822531ccc21aea2b1ff0ef79e9/getsentry/sentry-javascript/issues/8291
og:image:altIs there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelucasnad27
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/8291#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F8291
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%2Fgetsentry%2Fsentry-javascript%2Fissues%2F8291
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=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/8291
Reloadhttps://github.com/getsentry/sentry-javascript/issues/8291
Reloadhttps://github.com/getsentry/sentry-javascript/issues/8291
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues343 (343)https://github.com/getsentry/sentry-javascript/issues
Pull requests58 (58)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/8291
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/8291
#14672https://github.com/getsentry/sentry-javascript/pull/14672
SvelteKit Cloudflare adapter failinghttps://github.com/getsentry/sentry-javascript/issues/8291#top
#14672https://github.com/getsentry/sentry-javascript/pull/14672
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
https://github.com/lucasnad27
lucasnad27https://github.com/lucasnad27
on Jun 5, 2023https://github.com/getsentry/sentry-javascript/issues/8291#issue-1742741366
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
sveltekit documentationhttps://kit.svelte.dev/docs/adapter-cloudflare#usage
Nexthttps://github.com/getsentry/sentry-javascript/issues/8291?timeline_page=1
lucasnad27https://github.com/lucasnad27
Type: Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
on Jun 5, 2023https://github.com/getsentry/sentry-javascript/issues/8291#event-9439047973
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jun 5, 2023https://github.com/getsentry/sentry-javascript/issues/8291#event-9439048152
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
on Jun 5, 2023https://github.com/getsentry/sentry-javascript/issues/8291#event-14571397226
https://github.com/lucasnad27
lucasnad27https://github.com/lucasnad27
on Jun 5, 2023https://github.com/getsentry/sentry-javascript/issues/8291#issuecomment-1577583443
#6692 (comment)https://github.com/getsentry/sentry-javascript/issues/6692#issuecomment-1537244177
github-actionshttps://github.com/apps/github-actions
Waiting for: Teamhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Team%22
on Jun 5, 2023https://github.com/getsentry/sentry-javascript/issues/8291#event-9439052263
https://github.com/Wobbley
Wobbleyhttps://github.com/Wobbley
on Jun 7, 2023https://github.com/getsentry/sentry-javascript/issues/8291#issuecomment-1580201342
https://github.com/lucasnad27
lucasnad27https://github.com/lucasnad27
on Jun 8, 2023https://github.com/getsentry/sentry-javascript/issues/8291#issuecomment-1583082844
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Jun 9, 2023https://github.com/getsentry/sentry-javascript/issues/8291#issuecomment-1584574267
github-actionshttps://github.com/apps/github-actions
Waiting for: Teamhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Team%22
on Jun 9, 2023https://github.com/getsentry/sentry-javascript/issues/8291#event-9484514927
AbhiPrasadhttps://github.com/AbhiPrasad
Platform: Cloudflare Workershttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Cloudflare%20Workers%22
Package: SvelteKithttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20SvelteKit%22
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
Waiting for: Teamhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Team%22
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jun 9, 2023https://github.com/getsentry/sentry-javascript/issues/8291#event-9484514942
https://github.com/Lms24
Lms24https://github.com/Lms24
on Dec 3, 2024https://github.com/getsentry/sentry-javascript/issues/8291#issuecomment-2514818760
sveltejs/kit#12813https://github.com/sveltejs/kit/issues/12813
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Dec 3, 2024https://github.com/getsentry/sentry-javascript/issues/8291#event-15511353432
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Dec 3, 2024https://github.com/getsentry/sentry-javascript/issues/8291
https://github.com/nosovk
nosovkhttps://github.com/nosovk
on Dec 6, 2024https://github.com/getsentry/sentry-javascript/issues/8291#issuecomment-2524068999
https://github.com/jill64/sentry-sveltekit-cloudflarehttps://github.com/jill64/sentry-sveltekit-cloudflare
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Dec 6, 2024https://github.com/getsentry/sentry-javascript/issues/8291#event-15565190894
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Dec 6, 2024https://github.com/getsentry/sentry-javascript/issues/8291
AbhiPrasadhttps://github.com/AbhiPrasad
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Dec 9, 2024https://github.com/getsentry/sentry-javascript/issues/8291#event-15585597420
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Dec 9, 2024https://github.com/getsentry/sentry-javascript/issues/8291
linearhttps://github.com/apps/linear
Migratedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Migrated%22
on Jan 9, 2025https://github.com/getsentry/sentry-javascript/issues/8291#event-15872446925
Lms24https://github.com/Lms24
on Jan 13, 2025https://github.com/getsentry/sentry-javascript/issues/8291#event-15902646188
SvelteKit SDK improvements and fixes #14987https://github.com/getsentry/sentry-javascript/issues/14987
Lms24https://github.com/Lms24
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#14672https://github.com/getsentry/sentry-javascript/pull/14672
on Feb 21, 2025https://github.com/getsentry/sentry-javascript/issues/8291#event-16398155069
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Feb 24, 2025https://github.com/getsentry/sentry-javascript/issues/8291#issuecomment-2679114236
GitHub Actionshttps://help.github.com/en/actions
#14672https://github.com/getsentry/sentry-javascript/pull/14672
9.2.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/9.2.0
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Aug 12, 2025https://github.com/getsentry/sentry-javascript/issues/8291#event-19124825862
Danghoanphuchttps://github.com/Danghoanphuc
on Dec 1, 2025https://github.com/getsentry/sentry-javascript/issues/8291#event-21283768246
fix: Completely disable Sentry ESM hooks to prevent server crashhttps://github.com/Danghoanphuc/DELTA/commit/ae4ac49df2225dc9c48c09811aed182a23802d24
ae4ac49https://github.com/Danghoanphuc/DELTA/commit/ae4ac49df2225dc9c48c09811aed182a23802d24
fix: Root cause analysis - Exclude AI SDK from Sentry instrumentationhttps://github.com/Danghoanphuc/DELTA/commit/e1d1a90aa88e059b9dfd150f4be8672afad35676
e1d1a90https://github.com/Danghoanphuc/DELTA/commit/e1d1a90aa88e059b9dfd150f4be8672afad35676
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/8291
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/8291
Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Bug%22
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.