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

Aperta
#5,449 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@cocvn157 ci sta già lavorando.

Dal 8/11/2026.

  • #5476 di @JohnNuwan — chiusa senza merge
  • #5565 di @ducanh3005 — chiusa senza merge
  • #5601 di @huangji6693-max — chiusa senza merge
  • #5649 di @tungnguyen84 — chiusa senza merge
  • #5660 di @longdungai — chiusa senza merge
  • #5735 di @cocvn157 — aperta
  • #5738 di @jeffrey-graham — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
bun, node.js, typescript
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
19
Fork
115
Merge medio
1h 50m
PR unite (30g)
260

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tscircuit/cli

Tutte le issue di tscircuit/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.