failed to asynchronously prepare wasm: both async and sync fetching of the wasm failed
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
I encountered the problem,and my version is 1.9.0
import initSqlJs from 'sql.js/dist/sql-asm-debug.js'; use this, works well
import initSqlJs from 'sql.js/dist/sql-wasm-debug.js'; use this will occur failed to asynchronously prepare wasm: both async and sync fetching of the wasm failed. sql-wasm-debug.js:2091 Aborted(both async and sync fetching of the wasm failed)
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 by reproducing the wasm import from sql.js/dist/sql-wasm-debug.js and inspect the failure reported at sql-wasm-debug.js:2091, comparing it with the working sql-asm-debug.js import. The issue does not provide browser, bundler, or deployment details, so a useful outcome first requires identifying the loading context and establishing a reproducible case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, sqlite, wasm
- Domain
- databases, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100