opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') #3682

Closed
opened 2026-02-16 17:41:05 -05:00 by yindo · 3 comments
Owner

Originally created by @leoillanez777 on GitHub (Dec 19, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

TypeError: undefined is not an object (evaluating 'c3[mode2]')
    at resolveColor (src/cli/cmd/tui/context/theme.tsx:109:25)
    at <anonymous> (src/cli/cmd/tui/context/theme.tsx:112:18)
    at map (native:1:11)
    at resolveTheme (src/cli/cmd/tui/context/theme.tsx:111:174)
    at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3)
    at runTop (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:833:7)
    at runQueue (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:904:42)
    at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:860:84)
    at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5)
    at setStore (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/store/dist/dev.js:221:5)
    at <anonymous> (src/cli/cmd/tui/context/theme.tsx:223:7)
    at processTicksAndRejections (native:7:39)...

OpenCode version

1.0.174

Steps to reproduce

  1. /themes
  2. down testing difference themes

Screenshot and/or share link

Image

Operating System

macos

Terminal

Ghostty

Originally created by @leoillanez777 on GitHub (Dec 19, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description ``` TypeError: undefined is not an object (evaluating 'c3[mode2]') at resolveColor (src/cli/cmd/tui/context/theme.tsx:109:25) at <anonymous> (src/cli/cmd/tui/context/theme.tsx:112:18) at map (native:1:11) at resolveTheme (src/cli/cmd/tui/context/theme.tsx:111:174) at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22) at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3) at runTop (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:833:7) at runQueue (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:904:42) at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:860:84) at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5) at setStore (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/store/dist/dev.js:221:5) at <anonymous> (src/cli/cmd/tui/context/theme.tsx:223:7) at processTicksAndRejections (native:7:39)... ``` ### OpenCode version 1.0.174 ### Steps to reproduce 1. /themes 2. down testing difference themes ### Screenshot and/or share link <img width="887" height="433" alt="Image" src="https://github.com/user-attachments/assets/ab4118ba-e83e-4cfd-977a-e91e1283141d" /> ### Operating System macos ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:41:05 -05:00
yindo closed this issue 2026-02-16 17:41:05 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 19, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #5308: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') - Same error occurring while browsing themes
  • #4236: Can't use custom themes that use ANSI colors - Same underlying error with ANSI color theme resolution

Feel free to ignore if your specific case differs from these issues.

@github-actions[bot] commented on GitHub (Dec 19, 2025): This issue might be a duplicate of existing issues. Please check: - #5308: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') - Same error occurring while browsing themes - #4236: Can't use custom themes that use ANSI colors - Same underlying error with ANSI color theme resolution Feel free to ignore if your specific case differs from these issues.
Author
Owner

@rekram1-node commented on GitHub (Dec 20, 2025):

@leoillanez777 seems like u have an invalid theme, can u share it by chance?

@rekram1-node commented on GitHub (Dec 20, 2025): @leoillanez777 seems like u have an invalid theme, can u share it by chance?
Author
Owner

@R44VC0RP commented on GitHub (Jan 24, 2026):

Closing as duplicate of #5308 - same c3[mode2] undefined error.

@R44VC0RP commented on GitHub (Jan 24, 2026): Closing as duplicate of #5308 - same `c3[mode2]` undefined error.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3682