worker-shell: sqlite3 is unusable in the published package — sqlite3-worker.js is referenced but its module content is not in the tarball
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- sqlite, typescript
- Ambito
- backend, build-system
Direzione di ricerca
Ispeziona dist/backends/worker-shell/shell/sqlite.js e il percorso di build/pubblicazione del pacchetto, iniziando da pnpm build e dal collegamento del gruppo di funzionalità sqlite nel README. Riproduci il problema con un'installazione npm pulita di @cloudflare/computer@0.2.0; il lavoro è completato quando la mappa dei moduli pubblicata contiene sqlite3-worker.js e il comando sqlite3 documentato viene eseguito senza l'errore missing-worker.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The sqlite3 shell feature group can be imported and wired up per the README, but every invocation fails at runtime:
sqlite3: worker error: sqlite3 worker failed to load: sqlite3 worker not found. Run 'pnpm build' to compile the worker.
The error tells the user to run pnpm build, which isn't actionable from an installed npm package — it reads like a build step that didn't run before publish.
Reproduce
Clean install, nothing else in the picture:
npm init -y
npm install @cloudflare/computer@0.2.0
Wire the group into WorkerShellBackend as documented:
import sqliteModules from "@cloudflare/computer/shell/sqlite";
new WorkerShellBackend({ /* … */ commands: [sqliteModules] })
Then:
sqlite3 /demo/app.db "CREATE TABLE t(k TEXT); SELECT 1;"
# exitCode 1
# stderr: sqlite3 worker failed to load: sqlite3 worker not found. Run 'pnpm build' to compile the worker.
Other feature groups from the same mechanism work fine — curl and jq both behave as documented (verified against a live API), so this looks specific to the sqlite group rather than to how the groups are wired.
Diagnosis
In the published tarball, dist/backends/worker-shell/shell/sqlite.js references sqlite3-worker.js but never defines it. Against a clean npm install of 0.2.0:
references to sqlite3-worker.js: 1
has module content key ("sqlite3-worker.js": { "js": …): false
error string present: true
Every other module in that file ships as a "<name>.js": { "js": "…" } entry in the inlined module map — including the sql.js WASM payload, which is present. The sqlite3-worker.js entry point is the one piece missing, so the loader looks it up, misses, and hits the pnpm build branch.
So the WASM made it into the tarball but its worker entry point didn't — consistent with a build/publish step that doesn't emit (or doesn't include) that artifact.
Environment
@cloudflare/computer@0.2.0wrangler@4.123.0,workerd@1.20260811.1- macOS 25.2.0, local
wrangler dev - Backend: worker-shell (isolate),
nodejs_compat+experimental+enable_ctx_exports
Note
If sqlite3 is known-incomplete in this preview, dropping a line in the README's feature-group list would be enough — the current failure mode points at a pnpm build that an npm consumer can't run.
- Lingua principale
- TypeScript
- Stelle
- 9.2k
- Fork
- 525
- Merge medio
- 3g 12h
- PR unite (30g)
- 18
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cloudflare/computer
-
enhancement
cloudflare/computer#129 · 1 assegnatario ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
cloudflare/computer#68 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
cloudflare/computer#67 · 1 commento ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
cloudflare/computer#52 · 3 commenti ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
cloudflare/computer#50 · 5 commenti ·
Tutte le issue di cloudflare/computer
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mksglu/context-mode#1200 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/claude-code#96687 ·
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
AOSSIE-Org/DebateAI#582 · 2 commenti ·