Error creating and opening a database
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
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.
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