Skip to content

Windows: browse server build fails after v0.15.16.0 - ngrok native binary breaks bundle #911

@akhanaton

Description

@akhanaton

Problem

After upgrading gstack to v0.15.16.0, the browse server fails to start on Windows:

[browse] Starting server...
[browse] Server failed to start within 15s

Root Cause

Two issues from the ngrok integration for pair-agent:

1. Build error

browse/scripts/build-node-server.sh uses --outfile (single-file mode). On Windows, @ngrok/ngrok includes a native binary that Bun treats as a second output file, causing: cannot write multiple output files without an output directory

2. bun:sqlite stub not applied

The perl regex that stubs bun:sqlite fails on Windows due to brace escaping. Node.js then crashes with ERR_UNSUPPORTED_ESM_URL_SCHEME.

Fix

Add --external "@ngrok/ngrok" to the bun build command in browse/scripts/build-node-server.sh line 17. For the perl issue, use sed as fallback on Windows.

Environment

  • Windows 11 Pro (Git Bash), Bun 1.3.11, Node v24.13.0, gstack v0.15.16.0

Note

Even after fix, browse CLI server launcher still fails (likely #486). Workaround: pre-start with node server-node.mjs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions