anomalyco / anomalyco/opencode
opencode crashes at startup on FreeBSD: Cannot find module '@ff-labs/fff-bun'
Open
@nexxeln is already working on this.
Since Sep 12, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Building/running opencode from source on FreeBSD crashes at startup. bun install itself succeeds (Bun skips platform-mismatched optional deps), but @ff-labs/fff-bun declares "os": ["darwin", "linux", "win32"], so on FreeBSD Bun resolves it in the lockfile but never extracts it to node_modules. The static import in packages/core/src/filesystem/fff.bun.ts then throws and the CLI dies before doing anything.
OpenCode version
dev (1.18.30)
Steps to reproduce
- On FreeBSD, install Bun and clone the repo
bun install(succeeds, but@ff-labs/fff-bunis not extracted)bun run --cwd packages/opencode ./src/index.ts --version- Crashes:
error: Cannot find module '@ff-labs/fff-bun'
Operating System
FreeBSD 14.x (x64)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.