René's URL Explorer Experiment


Title: @sentry/tanstackstart-react: vite-plugin should not be a runtime dependency · Issue #19360 · getsentry/sentry-javascript · GitHub

Open Graph Title: @sentry/tanstackstart-react: vite-plugin should not be a runtime dependency · Issue #19360 · getsentry/sentry-javascript

X Title: @sentry/tanstackstart-react: vite-plugin should not be a runtime dependency · Issue #19360 · getsentry/sentry-javascript

Description: Problem @sentry/tanstackstart-react@10.39.0 includes @sentry/vite-plugin as a runtime dependency, causing ERR_MODULE_NOT_FOUND errors in production when using pnpm for deployment. Expected Behavior Build-time tools like Vite plugins shou...

Open Graph Description: Problem @sentry/tanstackstart-react@10.39.0 includes @sentry/vite-plugin as a runtime dependency, causing ERR_MODULE_NOT_FOUND errors in production when using pnpm for deployment. Expected Behavior...

X Description: Problem @sentry/tanstackstart-react@10.39.0 includes @sentry/vite-plugin as a runtime dependency, causing ERR_MODULE_NOT_FOUND errors in production when using pnpm for deployment. Expected Behavior...

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

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":"@sentry/tanstackstart-react: vite-plugin should not be a runtime dependency","articleBody":"## Problem\n\n`@sentry/tanstackstart-react@10.39.0` includes `@sentry/vite-plugin` as a runtime dependency, causing `ERR_MODULE_NOT_FOUND` errors in production when using pnpm for deployment.\n\n## Expected Behavior\n\nBuild-time tools like Vite plugins should be:\n- Listed as `peerDependencies` in the framework SDK (optional)\n- Installed as `devDependencies` by the user\n- **Never** included as runtime `dependencies`\n\nThis is the pattern used by other framework integrations and documented in Sentry's own bundler plugin documentation.\n\n## Actual Behavior\n\n```json\n// @sentry/tanstackstart-react@10.39.0/package.json\n{\n  \"dependencies\": {\n    \"@sentry/vite-plugin\": \"^4.8.0\"  // ← WRONG\n  }\n}\n```\n\nThis pulls `@sentry/bundler-plugin-core` and `@babel/core` (+ ~50 Babel plugins) into production bundles.\n\n## Runtime Errors in Production\n\nWhen deployed with pnpm, these packages aren't hoisted by default, causing:\n\n```\nError [ERR_MODULE_NOT_FOUND]: Cannot find package '@babel/core' \nimported from /app/.output/server/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs\n```\n\nSimilar errors occur for:\n- `@opentelemetry/instrumentation`\n- Various `@sentry/*` and `@babel/*` packages\n\n## Reproduction\n\n1. Create TanStack Start app with `@sentry/tanstackstart-react@10.39.0`\n2. Deploy using `pnpm deploy --prod` (or any pnpm-based deployment)\n3. Run the deployed app\n4. Observe runtime import errors\n\n## Environment\n\n- **Package**: `@sentry/tanstackstart-react@10.39.0`\n- **Runtime**: Node.js production deployment (Docker, serverless, etc.)\n- **Package Manager**: pnpm v10 (with default hoisting behavior)\n- **Framework**: TanStack Start v1.160.0\n\n## Workaround\n\nAdd to `.npmrc`:\n```ini\npublic-hoist-pattern[]=*@opentelemetry/*\npublic-hoist-pattern[]=*@sentry/*\npublic-hoist-pattern[]=*@babel/*\n```\n\nThis forces pnpm to hoist these packages, but has significant drawbacks:\n- **Security**: Bundles ~5-10MB of build tools in production\n- **Performance**: Extra memory overhead and slower cold starts\n- **Bundle size**: Babel + plugins unnecessarily inflates deployments\n\n## Requested Fix\n\nRemove `@sentry/vite-plugin` from `dependencies` in `@sentry/tanstackstart-react/package.json`:\n\n```diff\n{\n- \"dependencies\": {\n-   \"@sentry/vite-plugin\": \"^4.8.0\"\n- },\n+ \"peerDependencies\": {\n+   \"@sentry/vite-plugin\": \"^4.8.0\"\n+ },\n+ \"peerDependenciesMeta\": {\n+   \"@sentry/vite-plugin\": {\n+     \"optional\": true\n+   }\n+ }\n}\n```\n\nAnd update documentation to have users install `@sentry/vite-plugin` as a devDependency.\n\n## Similar Issues\n\nThis is the **exact same problem** that exists with other framework SDKs:\n- #9544 - `@sentry/sveltekit` with Netlify deployments\n- Both cases: bundler plugins incorrectly bundled as runtime dependencies\n\n## Additional Context\n\n- Latest version checked: `@sentry/tanstackstart-react@10.39.0` (2026-02-16)\n- Issue persists across all 10.x versions\n- Affects any deployment using pnpm or strict dependency managers\n- Workaround reference: sortie-code/sortie@9ca8966\n\nBuild tools should never be runtime dependencies. This packaging bug:\n1. Violates npm/pnpm best practices\n2. Creates security surface area (unnecessary code in production)\n3. Degrades performance (bundle bloat, memory overhead)\n4. Breaks deployments with proper dependency isolation\n\nPlease consider fixing this packaging issue to align with other Sentry framework SDKs and standard npm practices.","author":{"url":"https://github.com/tttc6","@type":"Person","name":"tttc6"},"datePublished":"2026-02-17T13:51:26Z","url":"https://github.com/getsentry/sentry-javascript/issues/19360"}

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:1a13bd60-b682-8db9-9c1e-a3ab5439b87a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE92A:2815D1:739F59:9E44B8:6B0479FA
html-safe-nonce506d28c8785c1289cdb396d70e8a97cf8997e763dec7e0427e890eab2c73d1b7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTJBOjI4MTVEMTo3MzlGNTk6OUU0NEI4OjZCMDQ3OUZBIiwidmlzaXRvcl9pZCI6IjQ1MTIwOTc0MDY2NDQ2ODEyMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4d4cf298190b3af37f61a08ca99aea06f28b04bc37b3f31aaa6226781ea547c1
hovercard-subject-tagissue:3952874015
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/19360/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c238572fd3ee3acdc89bbce68b649164f42fbc56b97cbb40f0526609ca104b81/getsentry/sentry-javascript/issues/19360
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c238572fd3ee3acdc89bbce68b649164f42fbc56b97cbb40f0526609ca104b81/getsentry/sentry-javascript/issues/19360
og:image:altProblem @sentry/tanstackstart-react@10.39.0 includes @sentry/vite-plugin as a runtime dependency, causing ERR_MODULE_NOT_FOUND errors in production when using pnpm for deployment. Expected Behavior...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametttc6
hostnamegithub.com
expected-hostnamegithub.com
None9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b
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
releasecf73f57448d52b3a7b619195e182b33d3b3454ca
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/19360#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F19360
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%2F19360
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/19360
Reloadhttps://github.com/getsentry/sentry-javascript/issues/19360
Reloadhttps://github.com/getsentry/sentry-javascript/issues/19360
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues339 (339)https://github.com/getsentry/sentry-javascript/issues
Pull requests54 (54)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/19360
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/19360
@sentry/tanstackstart-react: vite-plugin should not be a runtime dependencyhttps://github.com/getsentry/sentry-javascript/issues/19360#top
https://github.com/tttc6
tttc6https://github.com/tttc6
on Feb 17, 2026https://github.com/getsentry/sentry-javascript/issues/19360#issue-3952874015
Deployment on Netlify using SvelteKit succeeding during build but failing during requests (Cannot find module '@sentry/bundler-plugin-core/sentry-release-injection-file') #9544https://github.com/getsentry/sentry-javascript/issues/9544
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 Feb 17, 2026https://github.com/getsentry/sentry-javascript/issues/19360#event-22854238036
https://github.com/apps/linear
linearhttps://github.com/apps/linear
on Feb 17, 2026https://github.com/getsentry/sentry-javascript/issues/19360#issuecomment-3914815468
Linearhttps://linear.app
JS-1733https://linear.app/getsentry/issue/JS-1733/sentrytanstackstart-react-vite-plugin-should-not-be-a-runtime
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Feb 17, 2026https://github.com/getsentry/sentry-javascript/issues/19360#event-22854240050
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Feb 17, 2026https://github.com/getsentry/sentry-javascript/issues/19360
https://github.com/tttc6
tttc6https://github.com/tttc6
on Feb 17, 2026https://github.com/getsentry/sentry-javascript/issues/19360#issuecomment-3914848175
https://github.com/Lms24
Lms24https://github.com/Lms24
on Feb 18, 2026https://github.com/getsentry/sentry-javascript/issues/19360#issuecomment-3919292000
@tttc6https://github.com/tttc6
#18215https://github.com/getsentry/sentry-javascript/issues/18215
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 Feb 18, 2026https://github.com/getsentry/sentry-javascript/issues/19360#event-22876248034
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Feb 18, 2026https://github.com/getsentry/sentry-javascript/issues/19360
https://github.com/Lms24
Lms24https://github.com/Lms24
on Feb 18, 2026https://github.com/getsentry/sentry-javascript/issues/19360#issuecomment-3919294190
@nicohrubechttps://github.com/nicohrubec
https://github.com/nicohrubec
nicohrubechttps://github.com/nicohrubec
on Feb 18, 2026https://github.com/getsentry/sentry-javascript/issues/19360#issuecomment-3919547699
@Lms24https://github.com/Lms24
https://github.com/tttc6
tttc6https://github.com/tttc6
on Feb 18, 2026https://github.com/getsentry/sentry-javascript/issues/19360#issuecomment-3919847585
@Lms24https://github.com/Lms24
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 Feb 18, 2026https://github.com/getsentry/sentry-javascript/issues/19360#event-22879167697
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Feb 18, 2026https://github.com/getsentry/sentry-javascript/issues/19360
Lms24https://github.com/Lms24
Waiting for: Communityhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Community%22
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Feb 18, 2026https://github.com/getsentry/sentry-javascript/issues/19360#event-22879812177
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Feb 18, 2026https://github.com/getsentry/sentry-javascript/issues/19360
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Feb 18, 2026https://github.com/getsentry/sentry-javascript/issues/19360
https://github.com/tttc6
tttc6https://github.com/tttc6
on Feb 20, 2026https://github.com/getsentry/sentry-javascript/issues/19360#issuecomment-3935604255
tttc6https://github.com/tttc6
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 20, 2026https://github.com/getsentry/sentry-javascript/issues/19360#event-22952062646
getsantryhttps://github.com/apps/getsantry
Waiting for: Communityhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Community%22
on Feb 20, 2026https://github.com/getsentry/sentry-javascript/issues/19360#event-22952063707
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/19360
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/19360
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.