René's URL Explorer Experiment


Title: Sveltekit build with adapter-cloudflare fails · Issue #9176 · getsentry/sentry-javascript · GitHub

Open Graph Title: Sveltekit build with adapter-cloudflare fails · Issue #9176 · getsentry/sentry-javascript

X Title: Sveltekit build with adapter-cloudflare fails · Issue #9176 · 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...

Mail addresses
7.69.0_@sveltejs

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sveltekit build with adapter-cloudflare fails","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which SDK are you using?\r\n\r\n@sentry/sveltekit\r\n\r\n### SDK Version\r\n\r\n\"@sentry/sveltekit\": \"^7.73.0\",\r\n\r\n### Framework Version\r\n\r\n\"@sentry/sveltekit\": \"^7.73.0\",\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n```js\r\n  Sentry.init({\r\n    dsn: SENTRY_DSN,\r\n    environment: sentryEnvironment(),\r\n    // We recommend adjusting this value in production, or using tracesSampler\r\n    // for finer control\r\n    tracesSampleRate: 1.0,\r\n\r\n    // Enables bypassing browsers adblockers\r\n    // CF https://docs.sentry.io/platforms/javascript/guides/sveltekit/troubleshooting/?utm_expid=.OVGA2WEyTlS_pX-EST8OfQ.0#using-the-tunnel-option\r\n    tunnel: '/api/sentry-tunnel',\r\n  })\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create a sveltekit project with latest Sentry\r\n    \"@sveltejs/adapter-auto\": \"^2.1.0\",\r\n    \"@sveltejs/adapter-cloudflare\": \"^2.3.0\",\r\n    \"@sveltejs/kit\": \"^1.25.1\",\r\n    \"vite\": \"^4.4.9\",\r\n    \"svelte\": \"^4.2.1\",\r\n    \r\n2. Install sentry\r\n3. Build with normal adapter-auto : works\r\n4. Use adapter-cloudflare\r\n5. Build : it fails with an error located in the sentry code\r\n\r\n\r\n### Expected Result\r\n\r\nBuild does not fail\r\n\r\n### Actual Result\r\n\r\n> vite build\r\n\r\n[vite] Sentry plugin setup done\r\n\r\nvite v4.4.9 building SSR bundle for production...\r\ntransforming...\r\n\"default\" is imported from external module \"svelte-autosize\" but never used in \"src/lib/components/ui/textarea/Textarea.svelte\".\r\n✓ 6107 modules transformed.\r\nrendering chunks...\r\n\r\nvite v4.4.9 building for production...\r\ntransforming...\r\n✓ 6574 modules transformed.\r\nrendering chunks...\r\ncomputing gzip size...\r\n.svelte-kit/output/client/_app/version.json                                   0.03 kB │ gzip:  0.05 kB\r\n.svelte-kit/output/client/vite-manifest.json                                 21.25 kB │ gzip:  2.06 kB\r\n\r\n...\r\n\r\n.svelte-kit/output/client/_app/immutable/entry/app.27b0d20b.js              125.59 kB │ gzip: 37.30 kB\r\n✓ built in 50.37s\r\n.svelte-kit/output/server/vite-manifest.json                                                          13.42 kB\r\n\r\n...\r\n\r\n.svelte-kit/output/server/index.js                                                                   110.56 kB       \r\n\r\nRun npm run preview to preview your production build locally.\r\n\r\n> Using @sveltejs/adapter-cloudflare\r\nGET:/[fallback] took 7ms\r\nX [ERROR] Could not resolve \"$app/stores\"\r\n\r\n    ../../node_modules/.pnpm/@sentry+sveltekit@7.69.0_@sveltejs+kit@1.25.1_svelte@4.2.1/node_modules/@sentry/sveltekit/esm/client/router.js:3:33:\r\n      3 │ import { page, navigating } from '$app/stores';\r\n        ╵                                  ~~~~~~~~~~~~~\r\n\r\n  You can mark the path \"$app/stores\" as external to exclude it from the bundle, which will remove this error.       \r\n\r\nerror during build:\r\nError: Build failed with 1 error:\r\n../../node_modules/.pnpm/@sentry+sveltekit@7.69.0_@sveltejs+kit@1.25.1_svelte@4.2.1/node_modules/@sentry/sveltekit/esm/client/router.js:3:33: ERROR: Could not resolve \"$app/stores\"\r\n    at failureErrorWithLog (C:\\...\\Turbo\\node_modules\\.pnpm\\esbuild@0.17.19\\node_modules\\esbuild\\lib\\main.js:1636:15)\r\n    at C:\\...\\Turbo\\node_modules\\.pnpm\\esbuild@0.17.19\\node_modules\\esbuild\\lib\\main.js:1048:25\r\n    at C:\\...\\Turbo\\node_modules\\.pnpm\\esbuild@0.17.19\\node_modules\\esbuild\\lib\\main.js:993:52\r\n    at buildResponseToResult (C:\\...\\Turbo\\node_modules\\.pnpm\\esbuild@0.17.19\\node_modules\\esbuild\\lib\\main.js:1046:7)\r\n    at C:\\...\\Turbo\\node_modules\\.pnpm\\esbuild@0.17.19\\node_modules\\esbuild\\lib\\main.js:1075:16\r\n    at responseCallbacks.\u003ccomputed> (C:\\...\\Turbo\\node_modules\\.pnpm\\esbuild@0.17.19\\node_modules\\esbuild\\lib\\main.js:697:9)\r\n    at handleIncomingPacket (C:\\...\\Turbo\\node_modules\\.pnpm\\esbuild@0.17.19\\node_modules\\esbuild\\lib\\main.js:752:9)\r\n    at Socket.readFromStdout (C:\\...\\Turbo\\node_modules\\.pnpm\\esbuild@0.17.19\\node_modules\\esbuild\\lib\\main.js:673:7)\r\n    at Socket.emit (node:events:514:28)\r\n    at Socket.emit (node:domain:489:12)\r\n ELIFECYCLE  Command failed with exit code 1.\r\nERROR: command finished with error: command (C:\\...\\Turbo\\apps\\SvelteKitProject) pnpm run build exited (1)\r\nSvelteKitProject#build: command (C:\\...\\Turbo\\apps\\SvelteKitProject) pnpm run build exited (1)\r\n\r\n Tasks:    1 successful, 2 total\r\nCached:    0 cached, 2 total\r\n  Time:    1m31.191s\r\nFailed:    SvelteKitProject#build\r\n\r\n ERROR  run failed: command  exited (1)","author":{"url":"https://github.com/MarArMar","@type":"Person","name":"MarArMar"},"datePublished":"2023-10-04T11:57:11Z","url":"https://github.com/getsentry/sentry-javascript/issues/9176"}

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:89dce545-f4fa-3f68-91db-47c56239160c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD38A:282FC:4829F0:60D5D0:6B04A1B9
html-safe-nonced77d346e27ac8d44eedc9da82a67d860f338dae8202dd8253d28795021f0433b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzhBOjI4MkZDOjQ4MjlGMDo2MEQ1RDA6NkIwNEExQjkiLCJ2aXNpdG9yX2lkIjoiODgwOTM0OTQ3MDYyNzM0MDcyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac08e0618cac097b0bfd44d3d42f94f97a59e75fffa546993034d44e81730d5db0
hovercard-subject-tagissue:1926051313
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/9176/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9480f0c20f5e4190a71a664adf72c9c98e5266c11b332c0e35ccd2e9f20dd6ee/getsentry/sentry-javascript/issues/9176
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9480f0c20f5e4190a71a664adf72c9c98e5266c11b332c0e35ccd2e9f20dd6ee/getsentry/sentry-javascript/issues/9176
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:usernameMarArMar
hostnamegithub.com
expected-hostnamegithub.com
None9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d
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
release3fd14143b75b2af7b76bbd23b069867d091adfcc
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/9176#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F9176
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%2F9176
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/9176
Reloadhttps://github.com/getsentry/sentry-javascript/issues/9176
Reloadhttps://github.com/getsentry/sentry-javascript/issues/9176
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues333 (333)https://github.com/getsentry/sentry-javascript/issues
Pull requests52 (52)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/9176
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/9176
Sveltekit build with adapter-cloudflare failshttps://github.com/getsentry/sentry-javascript/issues/9176#top
https://github.com/MarArMar
MarArMarhttps://github.com/MarArMar
on Oct 4, 2023https://github.com/getsentry/sentry-javascript/issues/9176#issue-1926051313
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
@sentryhttps://github.com/sentry
MarArMarhttps://github.com/MarArMar
Type: Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
on Oct 4, 2023https://github.com/getsentry/sentry-javascript/issues/9176#event-10550074504
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 Oct 4, 2023https://github.com/getsentry/sentry-javascript/issues/9176#event-10550074853
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
on Oct 4, 2023https://github.com/getsentry/sentry-javascript/issues/9176#event-14882927163
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
on Oct 4, 2023https://github.com/getsentry/sentry-javascript/issues/9176
github-actionshttps://github.com/apps/github-actions
Package: SvelteKithttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20SvelteKit%22
on Oct 4, 2023https://github.com/getsentry/sentry-javascript/issues/9176#event-10550076747
https://github.com/MarArMar
MarArMarhttps://github.com/MarArMar
on Oct 4, 2023https://github.com/getsentry/sentry-javascript/issues/9176#issuecomment-1746736288
https://github.com/MarArMar
MarArMarhttps://github.com/MarArMar
on Oct 4, 2023https://github.com/getsentry/sentry-javascript/issues/9176#issuecomment-1746786461
https://github.com/Lms24
Lms24https://github.com/Lms24
on Oct 5, 2023https://github.com/getsentry/sentry-javascript/issues/9176#issuecomment-1748195962
@MarArMarhttps://github.com/MarArMar
documentationhttps://docs.sentry.io/platforms/javascript/guides/sveltekit/#compatibility
#9107https://github.com/getsentry/sentry-javascript/issues/9107
#8693https://github.com/getsentry/sentry-javascript/issues/8693
#8291https://github.com/getsentry/sentry-javascript/issues/8291
#8921https://github.com/getsentry/sentry-javascript/pull/8921
Lms24https://github.com/Lms24
not plannedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Oct 5, 2023https://github.com/getsentry/sentry-javascript/issues/9176#event-10558929113
Lms24https://github.com/Lms24
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Oct 5, 2023https://github.com/getsentry/sentry-javascript/issues/9176#event-10558933799
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
on Oct 5, 2023https://github.com/getsentry/sentry-javascript/issues/9176
https://github.com/MarArMar
MarArMarhttps://github.com/MarArMar
on Oct 5, 2023https://github.com/getsentry/sentry-javascript/issues/9176#issuecomment-1748222358
https://github.com/jerriclynsjohn
jerriclynsjohnhttps://github.com/jerriclynsjohn
on Nov 1, 2023https://github.com/getsentry/sentry-javascript/issues/9176#issuecomment-1789477763
#8693https://github.com/getsentry/sentry-javascript/issues/8693
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/9176
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/9176
GitHub Issues with 👀https://github.com/orgs/getsentry/projects/76
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.