Skip to content

Conversation

@felixweinberger
Copy link
Contributor

Summary

  • Fixed an issue where running npx . without arguments would crash with 'Unexpected argument' error
  • The problem was introduced in commit dc5fa6a which changed argument passing to use equal sign notation
  • Empty strings were being passed as positional arguments when no command/args were provided

Changes

  • Filter out empty strings from the arguments array before passing to spawnPromise
  • Added test coverage to verify web client can start without arguments

Test plan

  • All existing tests pass
  • New test added to verify npx . works without crashing
  • Manually tested that npx . starts the web client successfully

…s error

When running 'npx .' without any arguments, empty strings were being passed
as positional arguments to the server, causing Node.js parseArgs to fail with
'Unexpected argument' error. This fix filters out empty strings from the
arguments array before passing them to spawnPromise.

Also added a test to verify the web client can start without any arguments,
preventing regression of this issue.
@github-actions
Copy link

github-actions bot commented Aug 5, 2025

🎭 Playwright E2E Test Results

✅  15 passed

Details

15 tests across 2 suites
 24.6 seconds
 462d0e7
ℹ️  Test Environment: Ubuntu Latest, Node.js v22.17.1
Browsers: Chromium, Firefox

📊 View Detailed HTML Report (download artifacts)

@felixweinberger felixweinberger deleted the fweinberger/fix-npx-no-args branch August 5, 2025 10:29
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