You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
opencode fails to build with no matching import error #3773
cd "opencode-1.0.12"
bun install
cd packages/tui
CGO_ENABLED=0 go build -ldflags="-s -w -X main.Version=1.0.12" -o tui cmd/opencode/main.go
cd ../opencode
bun build --define OPENCODE_TUI_PATH="'$(realpath ../tui/tui)'" --define OPENCODE_VERSION="'1.0.12'" --compile --target=bun-linux-x64 --outfile=opencode ./src/index.ts
I get this:
error: No matching export in "../../node_modules/.bun/@opentui+solid@0.1.32+1753ef9b65046169/node_modules/@opentui/solid/jsx-runtime.d.ts" for import "jsxDEV"
at /tmp/makepkg.builddir/opencode/src/opencode-1.0.12/packages/opencode/src/cli/cmd/tui/context/helper.tsx
==> ERROR: A failure occurred in build().
I've read online at various places this could be worked around by setting NODE_ENV=production. However, this only slightly changes the error output (note jsxDEV became jsx):
error: No matching export in "../../node_modules/.bun/@opentui+solid@0.1.32+1753ef9b65046169/node_modules/@opentui/solid/jsx-runtime.d.ts" for import "jsx"
at /tmp/makepkg.builddir/opencode/src/opencode-1.0.12/packages/opencode/src/cli/cmd/tui/context/helper.tsx
==> ERROR: A failure occurred in build().
This issue might be a duplicate of existing issues. Please check:
Packaging Guidance Request for v1.x #3739: This issue discusses the same outdated build process problem for v1.x. The build commands you're using are from the pre-v1.0 architecture when OpenCode used Go+bubbletea TUI, but v1.0+ uses OpenTUI (Zig+SolidJS). The AUR PKGBUILD and manual build instructions need to be updated for the new architecture.
Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Nov 2, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rubin55 commentedon Nov 3, 2025
If anyone comes across this, github-actions bot is right. The build commands have changed from:
To:
(change version accordingly)