Skip to content

fix(dev): Run the sidecar with --experimental-strip-types for Node 26 - #1364

Merged
BYK merged 1 commit into
getsentry:mainfrom
cristianchiriac:fix/node-26-strip-types
Oct 17, 2026
Merged

BYK merged 1 commit into
getsentry:mainfrom
cristianchiriac:fix/node-26-strip-types

Conversation

@cristianchiriac

@cristianchiriac cristianchiriac commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Node 26 removed --experimental-transform-types (nodejs/node#61803), so on Node 26 the dev scripts in packages/spotlight exit before starting the sidecar:

$ pnpm dev:server
node.exe: bad option: --experimental-transform-types

dev and dev:server now use --experimental-strip-types. The sidecar sources have no syntax that needs a transform (enums, namespaces, parameter properties), so stripping types is enough. The transform flag already required Node 22.7+, and --experimental-strip-types exists since 22.6, so this doesn't narrow which Node versions can run the dev scripts.

Tested locally from packages/spotlight (node --experimental-strip-types src/run.ts, after pnpm install):

  • Node 26.12.0: before, exits immediately with bad option. After, Spotlight listening on 8969.
  • Node 22.12.0: Spotlight listening on 8969.

Only these two dev scripts change. Builds and the published CLI are unaffected. The repo's lint-staged hook also reformatted the "files" array in the same package.json onto one line (["dist"]).

Node 26 removed --experimental-transform-types, so pnpm dev and
pnpm dev:server exited with 'bad option' before starting.
@vercel

vercel Bot commented Oct 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
spotlightjs Skipped Skipped Oct 17, 2026 6:45am UTC

Request Review

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@BYK
BYK enabled auto-merge (squash) October 17, 2026 23:28
@BYK
BYK merged commit fe43f86 into getsentry:main Oct 17, 2026
18 checks passed

This branch was successfully deployed

1 active deployment
Preview — 2fcec617 Deployed Oct 17, 2026 by cristianchiriac via Build #2422
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants