Title: SolidStart build-time instrumentation breaks mysql and ioredis on Node 24+ · Issue #24786 · getsentry/sentry-javascript · GitHub
Open Graph Title: SolidStart build-time instrumentation breaks mysql and ioredis on Node 24+ · Issue #24786 · getsentry/sentry-javascript
X Title: SolidStart build-time instrumentation breaks mysql and ioredis on Node 24+ · Issue #24786 · getsentry/sentry-javascript
Description: Follow up to #24343 With build-time instrumentation, @sentry/solidstart force-inlines mysql and ioredis into the Nitro server bundle, but their CommonJS dependencies stay external. Rollup reads those external dependencies through getDefa...
Open Graph Description: Follow up to #24343 With build-time instrumentation, @sentry/solidstart force-inlines mysql and ioredis into the Nitro server bundle, but their CommonJS dependencies stay external. Rollup reads tho...
X Description: Follow up to #24343 With build-time instrumentation, @sentry/solidstart force-inlines mysql and ioredis into the Nitro server bundle, but their CommonJS dependencies stay external. Rollup reads tho...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/24786
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SolidStart build-time instrumentation breaks mysql and ioredis on Node 24+","articleBody":"Follow up to #24343\n\nWith build-time instrumentation, `@sentry/solidstart` force-inlines `mysql` and `ioredis` into the Nitro server bundle, but their CommonJS dependencies stay external. Rollup reads those external dependencies through `getDefaultExportFromNamespaceIfNotNamed`, which only unwraps `default` when it is the only key on the namespace. From Node 24.0, a CommonJS namespace also has a `module.exports` key, so the helper returns the namespace object and the drivers break at runtime:\n\n- `mysql`: `TypeError: SqlString.format is not a function`\n- `ioredis`: `TypeError: (0 , lodash_1.defaults) is not a function`\n\nThis is not specific to CI, every SolidStart app with `mysql` or `ioredis` on Node 24+ is affected. The same built server fails without the Sentry `--import` hook, so the problem is in the bundle output, not in the runtime SDK.\n\n| Node | Result |\n|---|---|\n| 20.19.5, 22.22.3 | works |\n| 24.0.0 to 24.21.0, 26.1.0 | fails |\n\nExternal CommonJS dependencies in a SolidStart build that have only `default` and `module.exports` on Node 24: `bignumber.js`, `sqlstring` (from `mysql`), `denque`, `lodash.defaults`, `lodash.isarguments` (from `ioredis`). Other instrumented modules can have more. `@rollup/plugin-commonjs` 29.0.3 still ships the same helper.\n\n`@sentry/nuxt` builds the same inline list in `packages/nuxt/src/vite/orchestrion.ts`. I did not verify whether Nuxt apps are affected.\n\nPossible fixes:\n\n- Add the dependencies above to the inline list next to `standard-as-callback` in `packages/solidstart/src/config/withSentry.ts` (and in Nuxt, if affected). Small, but covers only the known modules.\n- Fix the interop for all external dependencies of inlined modules in `sentryOrchestrionPlugin`, for example with `@rollup/plugin-commonjs` options.\n\nWhen this is fixed, remove the `volta.node` pin (`20.19.5`) from the `solidstart` and `solidstart-static` E2E apps, which #24343 added so their E2E tests keep running on Node 20.\n","author":{"url":"https://github.com/JPeer264","@type":"Person","name":"JPeer264"},"datePublished":"2026-09-28T09:16:03Z","url":"https://github.com/getsentry/sentry-javascript/issues/24786"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d6be97f3-cc96-1bec-2982-4e80330f0651 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACCC:232DFC:2806C30:3464614:6B042B1F |
| html-safe-nonce | 3368b1c35a90dd07aa39dd03b80db31745d018a6fcb3149ff3bfd8601e53a397 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0NDOjIzMkRGQzoyODA2QzMwOjM0NjQ2MTQ6NkIwNDJCMUYiLCJ2aXNpdG9yX2lkIjoiMzEwNzgzMDk3NTYwNzA4OTk1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7b89ad9660241a0c8a9d1bd17183d1ecf4174444108db4ffc511e942c2c12659 |
| hovercard-subject-tag | issue:5612191815 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/24786/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8e91d0ca18ea839153fd2242a1e2747ebdf576b5e7f62b3e53e0d6dc61c0c25d/getsentry/sentry-javascript/issues/24786 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8e91d0ca18ea839153fd2242a1e2747ebdf576b5e7f62b3e53e0d6dc61c0c25d/getsentry/sentry-javascript/issues/24786 |
| og:image:alt | Follow up to #24343 With build-time instrumentation, @sentry/solidstart force-inlines mysql and ioredis into the Nitro server bundle, but their CommonJS dependencies stay external. Rollup reads tho... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JPeer264 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width