Skip to content

Cannot find module solid-plugin when building AUR package #4126

Closed

Description

@rubin55

Description

Since this morning, version 1.0.51, I'm getting this when building the AUR package (https://aur.archlinux.org/packages/opencode):

error: Cannot find module '../node_modules/@opentui/solid/scripts/solid-plugin' from '/tmp/makepkg.builddir/opencode/src/opencode-1.0.51/packages/opencode/script/build.ts'

Bun v1.3.2 (Linux x64)
==> ERROR: A failure occurred in build().
    Aborting...

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 9, 2025
  2. github-actions commented on Nov 9, 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.

  3. kcgthb commented on Nov 10, 2025

    @kcgthb

    Same issue here, still happens in 1.0.55

  4. rekram1-node commented on Nov 10, 2025

    @rekram1-node
    Collaborator

    ill look into this

  5. self-assigned this
    on Nov 10, 2025
  6. rubin55 commented on Nov 11, 2025

    @rubin55
    Author

    I see the build gets further now, but now getting error message about executable location:

    install: target '/tmp/makepkg.builddir/opencode/pkg/opencode/usr/bin/opencode': No such file or directory
    
  7. rubin55 commented on Nov 11, 2025

    @rubin55
    Author

    Diff for PKGBUILD:

    diff --git a/PKGBUILD b/PKGBUILD
    index f6a78a9..710901b 100644
    --- a/PKGBUILD
    +++ b/PKGBUILD
    @@ -8,7 +8,7 @@ options=('!debug' '!strip')
     pkgrel=1
     pkgdesc='The AI coding agent built for the terminal.'
     url='https://github.com/sst/opencode'
    -arch=('aarch64' 'x86_64')
    +arch=('x86_64')
     license=('MIT')
     provides=('opencode')
     conflicts=('opencode-bin')
    @@ -22,10 +22,10 @@ build() {
       cd "opencode-${pkgver}"
       bun install
       cd ./packages/opencode
    -  OPENCODE_CHANNEL=latest OPENCODE_VERSION=1.0.58 bun run ./script/build.ts --single
    +  OPENCODE_CHANNEL=latest OPENCODE_VERSION=${pkgver} bun run ./script/build.ts --single
     }
    
     package() {
       cd "opencode-${pkgver}/packages/opencode"
    -  install -Dm755 $(find dist/*/bin/opencode) "${pkgdir}/usr/bin/opencode"
    +  install -Dm755 ${srcdir}/opencode-${pkgver}/packages/opencode/dist/opencode-linux-x64/bin/opencode "${pkgdir}/usr/bin/opencode"
     }
  8. dotAtWork commented on Nov 17, 2025

    @dotAtWork

    I see the build gets further now, but now getting error message about executable location:

    install: target '/tmp/makepkg.builddir/opencode/pkg/opencode/usr/bin/opencode': No such file or directory
    

    I can confirm that there are no files in /home/user/.cache/yay/opencode/pkg/opencode/

  9. rekram1-node commented on Nov 20, 2025

    @rekram1-node
    Collaborator

    @dotAtWork can u try latest i think it's fixed

  10. rekram1-node commented on Nov 20, 2025

    @rekram1-node
    Collaborator

    fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions