[GH-ISSUE #29] index.ts missing from @opentui/core-darwin-arm64/ #8

Closed
opened 2026-03-02 23:43:48 +03:00 by kerem · 4 comments
Owner

Originally created by @logno-dev on GitHub (Aug 15, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/29

Environment

• OS: macOS (Darwin arm64)
• Bun Version: 1.2.19
• Package: @opentui/core v0.1.2
• Platform: darwin-arm64

Issue Description

When attempting to run examples in the OpenTUI project, the following error occurs:

error: Cannot find module '@opentui/core-darwin-arm64/index.ts' from 'packages/core/src/zig.ts'

Root Cause Analysis

The issue is in src/zig.ts:8 where the code attempts to dynamically import a platform-specific module:

const module = await import(`@opentui/core-${process.platform}-${process.arch}/index.ts`)

For macOS arm64, this resolves to @opentui/core-darwin-arm64/index.ts, but:

  1. Missing File in Package: The @opentui/core-darwin-arm64 package does not include the index.ts

Reproduction Steps

  1. Clone the repository
  2. Run bun install
  3. Navigate to packages/core/
  4. run bun run src/examples/index.ts
  5. Observe the module resolution error
Originally created by @logno-dev on GitHub (Aug 15, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/29 ### Environment • OS: macOS (Darwin arm64) • Bun Version: 1.2.19 • Package: @opentui/core v0.1.2 • Platform: darwin-arm64 ### Issue Description When attempting to run examples in the OpenTUI project, the following error occurs: `error: Cannot find module '@opentui/core-darwin-arm64/index.ts' from 'packages/core/src/zig.ts'` ### Root Cause Analysis The issue is in src/zig.ts:8 where the code attempts to dynamically import a platform-specific module: ```Javascript const module = await import(`@opentui/core-${process.platform}-${process.arch}/index.ts`) ``` For macOS arm64, this resolves to @opentui/core-darwin-arm64/index.ts, but: 1. Missing File in Package: The @opentui/core-darwin-arm64 package does not include the index.ts ### Reproduction Steps 1. Clone the repository 2. Run bun install 3. Navigate to packages/core/ 4. run `bun run src/examples/index.ts` 5. Observe the module resolution error
kerem closed this issue 2026-03-02 23:43:49 +03:00
Author
Owner

@kommander commented on GitHub (Aug 15, 2025):

Image

The file is definitely in the package. For some reason it downloads v0.1.1 for the optional dependencies. Optional dependencies are specified as latest, giving it an explicit version works. I'll use explicit versions and publish again.

<!-- gh-comment-id:3192990127 --> @kommander commented on GitHub (Aug 15, 2025): <img width="380" height="275" alt="Image" src="https://github.com/user-attachments/assets/56f3e9da-0ff3-48ec-a115-1965cdc99670" /> The file is definitely in the package. For some reason it downloads v0.1.1 for the optional dependencies. Optional dependencies are specified as `latest`, giving it an explicit version works. I'll use explicit versions and publish again.
Author
Owner

@kommander commented on GitHub (Aug 15, 2025):

@logno-dev should be fixed now?

<!-- gh-comment-id:3193004605 --> @kommander commented on GitHub (Aug 15, 2025): @logno-dev should be fixed now?
Author
Owner

@logno-dev commented on GitHub (Aug 17, 2025):

Yes, it works now. Thank you!

<!-- gh-comment-id:3194637436 --> @logno-dev commented on GitHub (Aug 17, 2025): Yes, it works now. Thank you!
Author
Owner

@ErikDombi commented on GitHub (Sep 29, 2025):

I am experiencing a similar issue, but with @opentui/core-linux-x64/index.ts on WSL2. Should I open a new issue for this?

<!-- gh-comment-id:3344559630 --> @ErikDombi commented on GitHub (Sep 29, 2025): I am experiencing a similar issue, but with `@opentui/core-linux-x64/index.ts` on WSL2. Should I open a new issue 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#8
No description provided.