tsci export -f glb can't load a relative cadModel stepUrl (404); build --glbs can
维护者通常 1 天内回复
@jeffrey-graham 已经在做这个了。
开始于 2026年11月7日。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- cli, react, typescript
- 领域
- cli
调研方向
The bug is in tsci export -f glb, which fails to resolve a relative cadModel stepUrl (404) while tsci build --glbs succeeds on the same file. Compare how the two commands pass the project base URL to circuit-json-to-gltf, starting with the export path. Two open pull requests (#5656, #5657) already target this, so check them before starting. Done means a GLB exported with the STEP model included, matching the size from build.
由索引模型根据 Issue 内容生成。
描述
tsci export -f glb can't load a cadModel with a relative stepUrl, but tsci build --glbs loads the same file.
// index.tsx, with libraries/cap.step next to it
export default () => (
<board width="10mm" height="10mm">
<capacitor name="C1" capacitance="100nF" footprint="0402" cadModel={{ stepUrl: "./libraries/cap.step" }} />
</board>
)
$ tsci export index.tsx -f glb -o export.glb
Failed to load STEP from ./libraries/cap.step
error: Failed to fetch STEP file: 404 Not Found
$ tsci build index.tsx --glbs
[index] Written 3d.glb
The export still writes a GLB, without the model: 21 KB against 63 KB from build. It looks like export doesn't pass the project base URL to circuit-json-to-gltf the way build does.
Versions: tscircuit 0.0.3055, @tscircuit/core 0.0.2252, @tscircuit/cli 0.1.2428, circuit-json-to-kicad 0.0.263, Bun 1.3.11.
- 主要语言
- 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 天内回复
-
The CLI needs Bun: under Node alone `tsci` fails and the Node entry can't load `.tsx`可能已有人在做 @cocvn157 于 7 天前认领。 未关闭
难度 4/5 1-2 天 新手友好度 35/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 天内回复