The CLI needs Bun: under Node alone `tsci` fails and the Node entry can't load `.tsx`
维护者通常 1 天内回复
@cocvn157 已经在做这个了。
开始于 2026年11月8日。
评估
- 难度
- 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.
- a Node-only path that can load
- 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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tscircuit/cli 的其他 Issue
-
`tsci check` and `tsci check netlist` exit 0 when they report errors可能已有人在做 @aswadi 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 57/100
维护者通常 1 天内回复
-
@tscircuit/cli 0.1.2452 bundles brace-expansion 2.0.1 and minimatch 5.1.2 (via make-vfs), both with published advisories可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
tsci dev: ngspice spiceEngine from tscircuit.config.ts fails three ways (package.json, top-level await, blob import)可能已有人在做 @cocvn157 于 11 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 22/100
维护者通常 1 天内回复
-
tsci export -f glb can't load a relative cadModel stepUrl (404); build --glbs can可能已有人在做 @jeffrey-graham 于 8 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
维护者通常 1 天内回复
-
`tsci check netlist` prints `undefined` after a resistor's value and labels resistor pins anode / cathode可能已有人在做 @cocvn157 于 11 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
software-mansion/argent#1946 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
podman-desktop/podman-desktop#20216 ·
维护者通常 1 天内回复
-
[Type] Bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
omdsh-dev/DSH-better-sidebar#1205 ·
维护者通常 3 天内回复