Skip to content

[TUI] Fatal Error: Unknown component type: spinner #18590

@avion23

Description

@avion23

TUI Fatal Error: Unknown component type: spinner

Error Description

OpenCode TUI crashes immediately with a fatal error when loading:

Error: [Reconciler] Unknown component type: spinner

This appears to be a version compatibility issue between opentui-spinner@0.0.6 and @opentui/core@0.1.88 / @opentui/solid@0.1.88.

Environment

Stack Trace

Error: [Reconciler] Unknown component type: spinner
at createElement (/$bunfs/root/src/index.js:352240:22)
at children (/$bunfs/root/src/index.js:403216:39)
at <anonymous> (/$bunfs/root/src/index.js:351323:27)
at runComputation (/$bunfs/root/src/index.js:350587:24)
at updateComputation (/$bunfs/root/src/index.js:350570:17)
at readSignal (/$bunfs/root/src/index.js:350492:24)
at <anonymous> (/$bunfs/root/src/index.js:351871:71)
at runComputation (/$bunfs/root/src/index.js:350587:24)
at updateComputation (/$bunfs/root/src/index.js:350570:17)
at createRenderEffect (/$bunfs/root/src/index.js:350141:22)
at insert (/$bunfs/root/src/index.js:351871:23)
at children (/$bunfs/root/src/index.js:403203:15)
...

Dependencies from packages/opencode/package.json:

{
  "@opentui/core": "0.1.88",
  "@opentui/solid": "0.1.88",
  "opentui-spinner": "0.0.6",
  "solid-js": "catalog:"
}

Build Output Warning:

+ @opentui/solid@0.1.88 (v0.1.90 available)
+ opentui-spinner@0.0.6

Steps to Reproduce

  1. Pull latest upstream/dev (commit c529529)
  2. Build opencode with bun run build --single
  3. Install binary
  4. Launch OpenCode (TUI mode)
  5. Fatal error occurs immediately

Expected Behavior

TUI should load without errors.

Possible Solutions

  1. Update opentui-spinner to a version compatible with @opentui/core@0.1.88
  2. Pin @opentui/core and @opentui/solid to versions compatible with opentui-spinner@0.0.6
  3. Check if spinner component export has changed in newer opentui versions

Workaround

Using CLI mode (opencode run) works fine, only TUI is affected.

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions