Skip to content

[Bug]: Build failure on Windows: canvas:a2ui:bundle triggers WSL instead of Git Bash #43891

@LR1093141031

Description

@LR1093141031

Bug type

Crash (process/app exits or hangs)

Summary

When running pnpm build on Windows, the build process fails at the canvas:a2ui:bundle step. This is because the script explicitly calls bash, which triggers the Windows System32 bash.exe (a stub for WSL) instead of the Git Bash environment, even if Git Bash is installed and configured in the PATH.

Steps to reproduce

Environment: Windows 10/11 without WSL installed/configured.
Run pnpm install (successfully handles git-hosted packages).
Run pnpm build.
See error: 适用于 Linux 的 Windows 子系统没有已安装的分发。 (WSL: No installed distributions).

Expected behavior

Expected behavior
The build should ideally use a cross-platform compatible shell command or allow fallback to sh, which is commonly mapped to Git Bash on Windows.

Actual behavior

See error: 适用于 Linux 的 Windows 子系统没有已安装的分发。 (WSL: No installed distributions).

OpenClaw version

2026.3.2

Operating system

Windows11

Install method

pnpm build

Model

null

Provider / routing chain

null

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

Possible Fix
Changing the script in package.json from:
"canvas:a2ui:bundle": "bash scripts/bundle-a2ui.sh"
to:
"canvas:a2ui:bundle": "sh scripts/bundle-a2ui.sh"

Using sh instead of bash helps bypass the Windows System32 WSL stub and correctly utilizes the Git Bash/MinGW environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:crashProcess/app exits unexpectedly or hangs

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions