sql-js / sql-js/sql.js

Error creating and opening a database

Open
#586 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I'm building a svelte 5 app, have installed sql.js and downloaded the sql-wasm.warm and worker.sql-wasm.js. Whenever I try and create or open a database I get an uncaught in promise error. I'm hoping to create a client side database that doesn't get wiped when the browsers data is wiped.
ChatGPT says it's possible, but I've not been able to get the code working at all in svelte (5 is still between by the way)...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Svelte 5 app's sql.js initialization and the downloaded sql-wasm.warm and worker.sql-wasm.js files; reproduce the uncaught promise error and inspect the browser console and loading behavior. Done means the app can create or open a database without the error, with the intended persistence behavior demonstrated or documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, sqlite, wasm
Domain
database, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.