tsci export -f glb can't load a relative cadModel stepUrl (404); build --glbs can
Maintainers usually reply within 1 day
@jeffrey-graham is already working on this.
Since Nov 7, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- cli, react, typescript
- Domain
- cli
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 19
- Forks
- 115
- Avg merge
- 1h 50m
- Merged PRs (30d)
- 260
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tscircuit/cli
-
`tsci check` and `tsci check netlist` exit 0 when they report errorsPossibly taken @aswadi claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 57/100
Maintainers usually reply within 1 day
-
@tscircuit/cli 0.1.2452 bundles brace-expansion 2.0.1 and minimatch 5.1.2 (via make-vfs), both with published advisoriesMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
tsci dev: ngspice spiceEngine from tscircuit.config.ts fails three ways (package.json, top-level await, blob import)Possibly taken @cocvn157 claimed this 10 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 22/100
Maintainers usually reply within 1 day
-
The CLI needs Bun: under Node alone `tsci` fails and the Node entry can't load `.tsx`Possibly taken @cocvn157 claimed this 7 days ago. Open
Difficulty 4/5 1-2 days Newbie friendliness 35/100
tscircuit/cli#5449 · 1 comment ·
Maintainers usually reply within 1 day
-
`tsci check netlist` prints `undefined` after a resistor's value and labels resistor pins anode / cathodePossibly taken @cocvn157 claimed this 10 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
tscircuit/cli#5447 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
area:cli area:security bug priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
"code source" and "numerique.gouv" links: "new window" mention duplicated in the accessible nameOpenaccessibility
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
numerique-gouv/lasuite-landingpage#315 ·
Maintainers usually reply within 1 day
-
needs:triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
HyeokjaeChoi/vaultme#585 ·
Maintainers usually reply within 1 day
-
enhancement priority/P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
beettlle/pi-smart-router#200 ·