Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

cli: managed source service misses the TUI JSX runtime

未关闭 适合新手
#58,981 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
69/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
bun, react, typescript
领域
backend, cli

调研方向

先检查报告中提到的 TSX 配置入口:tui/src/config/index.tsx 和 tui/src/config/v1/index.tsx,然后检查它们的 TypeScript 配置和托管服务启动路径。使用 Bun 1.4.2,在 v2 分支上通过 bun dev .. 复现问题。完成标准是服务注册时没有 react/jsx-dev-runtime 错误,同时根命令保留其 Node 端 AWS 凭证行为。

由索引模型根据 Issue 内容生成。

描述

reproduced
Description

On the v2 source checkout, bun dev .. starts the managed background service from the requested project directory. Bun then compiles the TUI config TSX entrypoints without packages/tui/tsconfig.json, falls back to react/jsx-dev-runtime, and exits before registering the service.

The earlier report #41324 proposed preserving --conditions=browser, but the root dev command intentionally dropped that condition in #47436 for Node-side AWS credential resolution. The config entrypoints need to declare their own @opentui/solid JSX runtime instead.

Plugins

None required to reproduce.

OpenCode version

v2 at 4617210822bdbb31e5749751afbfb4584ccedac8

Steps to reproduce
  1. Check out the v2 branch on Windows.
  2. Install with the pinned Bun 1.4.2.
  3. Run bun dev ...
  4. The background service exits with Cannot find module react/jsx-dev-runtime from packages/tui/src/config/index.tsx or packages/tui/src/config/v1/index.tsx.
Screenshot

No response.

Operating System

Windows 11 x64

Terminal

PowerShell 7

主要语言
TypeScript
星标
221k
派生
29.6k
平均合并
4 小时 53 分钟
30 天内合并 PR
506

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。