Skip to content

[bug] issue with @parcel/watcher in build(): error when installing via yay #3520

Closed

Description

@DerekCorniello

Description

when running yay -S opencode, the installation does not finish due to the following error:

27 |       `@parcel/watcher-${process.platform}-${process.arch}${process.platform === "linu
           ^
error: Could not resolve: "@parcel/watcher-linux-x64-glibc". Maybe you need to "bun install"?
    at /home/derekcorn/.cache/yay/opencode/src/opencode-0.15.20/packages/opencode/src/file/watcher.ts:27:7
==> ERROR: A failure occurred in build().

OpenCode version

0.15.20

Steps to reproduce

running yay -S opencode on a system using yay will cause the above error.

Screenshot and/or share link

No response

Operating System

ArchLinux (6.17.5-arch1-1)

Terminal

Kitty

Activity

  1. github-actions commented on Oct 29, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. DerekCorniello commented on Oct 29, 2025

    @DerekCorniello
    Author

    Yes, duplicate issue. An initial search did not find this unfortunately. Sorry for re-raising!

  3. fudapeng commented on Apr 21, 2026

    @fudapeng

    OpenCode version

    1.14.19

    Operating System

    Windows 11

    Installation method

    opencode-electron-win-x64.exe (Electron desktop app)

    Terminal

    Windows PowerShell / CMD

    Steps to reproduce

    1. Install via opencode-electron-win-x64.exe
    2. Launch the application
    3. Observe errors in logs immediately on startup

    Expected behavior

    App starts without errors; file watcher loads correctly; Windows paths handled as file:// URLs.

    Actual behavior

    • @parcel/watcher-win32-x64 native module is missing from the asar bundle
    • Windows drive letter (C:) not converted to file://C:/ for ESM loader
    • Git snapshot repack fails with permission denied on Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions