[GH-ISSUE #212] Help: Failing to run TypeScript examples on Linux system #818

Closed
opened 2026-03-14 08:41:00 +03:00 by kerem · 4 comments
Owner

Originally created by @hanpham32 on GitHub (Oct 10, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/212

Full log:

➜  opentui git:(doc/remove-go-installation) bun install
cd packages/core
bun run src/examples/index.ts

bun install v1.2.22 (6bafe260)

Checked 214 installs across 216 packages (no changes) [37.00ms]
error: Cannot find module '@opentui/core-linux-x64/index.ts' from '/opentui/packages/core/src/zig.ts'

It looks like zig.ts is looking to import something based on system architecture, and it's failing to identify one for my system:

// zig.ts
const module = await import(`@opentui/core-${process.platform}-${process.arch}/index.ts`)
Originally created by @hanpham32 on GitHub (Oct 10, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/212 Full log: ```bash ➜ opentui git:(doc/remove-go-installation) bun install cd packages/core bun run src/examples/index.ts bun install v1.2.22 (6bafe260) Checked 214 installs across 216 packages (no changes) [37.00ms] error: Cannot find module '@opentui/core-linux-x64/index.ts' from '/opentui/packages/core/src/zig.ts' ``` It looks like `zig.ts` is looking to import something based on system architecture, and it's failing to identify one for my system: ```ts // zig.ts const module = await import(`@opentui/core-${process.platform}-${process.arch}/index.ts`) ```
kerem closed this issue 2026-03-14 08:41:05 +03:00
Author
Owner

@remorses commented on GitHub (Oct 10, 2025):

Try running bun run build first

<!-- gh-comment-id:3392426408 --> @remorses commented on GitHub (Oct 10, 2025): Try running bun run build first
Author
Owner

@kommander commented on GitHub (Oct 10, 2025):

Mhh if the os an arch match for the optional dependency it should be installed. Try installing the @opentui/core-linux-x64 package manually?

<!-- gh-comment-id:3392523284 --> @kommander commented on GitHub (Oct 10, 2025): Mhh if the os an arch match for the optional dependency it should be installed. Try installing the `@opentui/core-linux-x64` package manually?
Author
Owner

@hanpham32 commented on GitHub (Oct 11, 2025):

Mhh if the os an arch match for the optional dependency it should be installed. Try installing the @opentui/core-linux-x64 package manually?

This helped me resolve the problem

<!-- gh-comment-id:3393719140 --> @hanpham32 commented on GitHub (Oct 11, 2025): > Mhh if the os an arch match for the optional dependency it should be installed. Try installing the `@opentui/core-linux-x64` package manually? This helped me resolve the problem
Author
Owner

@cravenceiling commented on GitHub (Jan 28, 2026):

I got the same error. Manually installing @opentui/core-linux-x64 works, but it seems that bun only installs optionalDependencies from the root package.json file. So I believe the correct solution would be to move the entire optionalDependencies section from packages/core to the root package.json file. I can submit a PR for this.

<!-- gh-comment-id:3813089580 --> @cravenceiling commented on GitHub (Jan 28, 2026): I got the same error. Manually installing `@opentui/core-linux-x64` works, but it seems that bun only installs `optionalDependencies` from the root `package.json` file. So I believe the correct solution would be to move the entire `optionalDependencies` section from `packages/core` to the root `package.json` file. I can submit a PR for this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#818
No description provided.