Skip to content

Studio CLI bundle uses Node 24-only await using syntax despite Node 22 engine support - #3937

Closed
katinthehatsite wants to merge 2 commits into
trunkfrom
fix/studio-cli-bundle-node
Closed

Studio CLI bundle uses Node 24-only await using syntax despite Node 22 engine support#3937
katinthehatsite wants to merge 2 commits into
trunkfrom
fix/studio-cli-bundle-node

Conversation

@katinthehatsite

@katinthehatsite katinthehatsite commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Related issues

Fixes STU-1801

How AI was used in this PR

It was used to identify and implement the fix.

Proposed Changes

The CLI's package.json declares node >=22.0.0 as the supported engine. so anyone on Node 22 (still the current LTS) should be able to run it. But the build output contained syntax (await using) that only Node 23+ can parse, so the app would crash on Node 22 before any code even executes.

This PR fixes the issue so that CLI can be run on Node 22.

Testing Instructions

  • Pull the changes from this branch
  • Run CLI with npm run cli:build
  • Run nvm use 22
  • Run node apps/cli/dist/cli/main.mjs --help
  • Confirm you can see the full help output along with different commands listed

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@katinthehatsite katinthehatsite self-assigned this Jun 23, 2026
@katinthehatsite
katinthehatsite marked this pull request as draft June 23, 2026 15:36
@katinthehatsite
katinthehatsite marked this pull request as ready for review June 23, 2026 15:52
@fredrikekelund

Copy link
Copy Markdown
Contributor

This was already fixed in #3885. The issue was reported before that fix landed on trunk.

@katinthehatsite

Copy link
Copy Markdown
Contributor Author

This was already fixed in #3885. The issue was reported before that fix landed on trunk.

Let me test quickly 👀 I still saw the issue but perhaps that was my setup

@katinthehatsite

Copy link
Copy Markdown
Contributor Author

All good, I can see it is working correctly in trunk now:

Screenshot 2026-06-24 at 11 22 16 AM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants