anomalyco / anomalyco/opencode

opencode crashes at startup on FreeBSD: Cannot find module '@ff-labs/fff-bun'

Open
#48,658 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. On FreeBSD, install Bun and clone the repo
  2. bun install (succeeds, but @ff-labs/fff-bun is not extracted)
  3. bun run --cwd packages/opencode ./src/index.ts --version
  4. Crashes: error: Cannot find module '@ff-labs/fff-bun'
Operating System

FreeBSD 14.x (x64)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.