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

Closed
opened 2026-02-16 17:36:59 -05:00 by yindo · 8 comments
Owner

Originally created by @rubin55 on GitHub (Nov 9, 2025).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @rubin55 on GitHub (Nov 9, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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_
yindo added the opentuibug labels 2026-02-16 17:36:59 -05:00
yindo closed this issue 2026-02-16 17:36:59 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 9, 2025):

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

  • #3773: Very similar build failure with @opentui/solid module when building AUR package, also reported by you (rubin55)
  • #3929: AUR install failure where the built opencode binary wasn't found after build process
  • #3520: Build failure in AUR package with missing module dependencies

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

@github-actions[bot] commented on GitHub (Nov 9, 2025): This issue might be a duplicate of existing issues. Please check: - #3773: Very similar build failure with @opentui/solid module when building AUR package, also reported by you (rubin55) - #3929: AUR install failure where the built opencode binary wasn't found after build process - #3520: Build failure in AUR package with missing module dependencies Feel free to ignore if none of these address your specific case.
Author
Owner

@kcgthb commented on GitHub (Nov 10, 2025):

Same issue here, still happens in 1.0.55

@kcgthb commented on GitHub (Nov 10, 2025): Same issue here, still happens in 1.0.55
Author
Owner

@rekram1-node commented on GitHub (Nov 10, 2025):

ill look into this

@rekram1-node commented on GitHub (Nov 10, 2025): ill look into this
Author
Owner

@rubin55 commented on GitHub (Nov 11, 2025):

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
@rubin55 commented on GitHub (Nov 11, 2025): 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 ```
Author
Owner

@rubin55 commented on GitHub (Nov 11, 2025):

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"
 }
@rubin55 commented on GitHub (Nov 11, 2025): Diff for `PKGBUILD`: ```diff 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" } ```
Author
Owner

@dotAtWork commented on GitHub (Nov 17, 2025):

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/

@dotAtWork commented on GitHub (Nov 17, 2025): > 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/`
Author
Owner

@rekram1-node commented on GitHub (Nov 20, 2025):

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

@rekram1-node commented on GitHub (Nov 20, 2025): @dotAtWork can u try latest i think it's fixed
Author
Owner

@rekram1-node commented on GitHub (Nov 20, 2025):

fixed

@rekram1-node commented on GitHub (Nov 20, 2025): fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2729