The CLI needs Bun: under Node alone `tsci` fails and the Node entry can't load `.tsx`

未关闭
#5,449 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@cocvn157 已经在做这个了。

开始于 2026年11月8日。

  • #5476 来自 @JohnNuwan —— 已关闭,未合并
  • #5565 来自 @ducanh3005 —— 已关闭,未合并
  • #5601 来自 @huangji6693-max —— 已关闭,未合并
  • #5649 来自 @tungnguyen84 —— 已关闭,未合并
  • #5660 来自 @longdungai —— 已关闭,未合并
  • #5735 来自 @cocvn157 —— 未关闭
  • #5738 来自 @jeffrey-graham —— 已关闭,未合并

评估

难度
4/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
bun, node.js, typescript
领域
cli

调研方向

Start by reading the CLI entry points and the code that loads .tsx circuits; the report names cli.mjs and the @tscircuit/cli Node entry but gives no source file or test path. Reproduce the reported commands with Node and no Bun, then decide whether a Node-only loader or documentation and an install message are the intended fix. Done means circuit commands work under Node alone or users are clearly told Bun is required; an open linked pull request is already addressing this issue.

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

描述

Reported before as tscircuit/tscircuit#2828, which was closed as stale. With Node 25.9 and no Bun on the PATH, after npm install tscircuit:

$ node_modules/.bin/tsci --version
env: bun: No such file or directory          # the bin's shebang is #!/usr/bin/env bun

$ node node_modules/tscircuit/cli.mjs --version
0.0.2942
$ node node_modules/tscircuit/cli.mjs check netlist index.circuit.tsx
Unknown file extension ".tsx" for .../index.circuit.tsx

$ node_modules/.bin/tscircuit-cli --version   # @tscircuit/cli's Node entry
(prints nothing, exit 0)

So Node can run --version, but no command that loads a circuit.

  • Expected, one of:
    • a Node-only path that can load .tsx (for example via a loader);
    • or docs and an install message that say Bun is required.
  • Workaround: npm install bun, or install Bun.

Versions: tscircuit 0.0.2942, @tscircuit/cli 0.1.2364, Node 25.9.0.

主要语言
TypeScript
星标
19
派生
115
平均合并
1 小时 50 分钟
30 天内合并 PR
260

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

tscircuit/cli 的其他 Issue

查看 tscircuit/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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