@capacitor-community/sqlite gives error "wasm streaming compile failed: LinkError: WebAssembly.instantiate()"

Hello,

I am trying to use @capacitor-community/sqlite and jeep-sqlite in my Ionic/Angular app. The normal setup works fine on Android emulators. But when I run the same code on the desktop browser I get the following error when calling db.open

app.component.ts:59 wasm streaming compile failed: LinkError: WebAssembly.instantiate(): Import #34 "a" "I": function import requires a callable

I am using *@capacitor-community/sqlite": "^7.0.1" and "jeep-sqlite": "^2.8.0" and have followed the instructions for web setup described at sqlite/docs/Web-Usage.md at e0ea7a122e3cb06542d2e1db7769cc97deb11955 · capacitor-community/sqlite · GitHub

Since capacitor-community/sqlite 7.0.1 is released recently and jeep-sqlite 2.8.0 is from last year, per rcommendations from some LLMs like Claude I tried downgrading to "jeep-sqlite": "^2.7.2" and "@capacitor-community/sqlite": "^5.7.4", which are both from June of last year, but I get the same error on the browser and can’t get past trying to open the database with db.open.

My ionic info output is as below and web search doesn’t show any other report of such error.

Ionic:

   Ionic CLI                     : 7.2.1 (/Users/username/.nvm/versions/node/v24.4.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 8.6.4
   @angular-devkit/build-angular : 20.1.0
   @angular-devkit/schematics    : 20.1.0
   @angular/cli                  : 20.1.0
   @ionic/angular-toolkit        : 12.2.0

Capacitor:

   Capacitor CLI      : 7.4.2
   @capacitor/android : 7.4.2
   @capacitor/core    : 7.4.2
   @capacitor/ios     : 7.4.2

Utility:

   cordova-res : not installed globally
   native-run  : 2.0.1

System:

   NodeJS : v24.4.0 (/Users/username/.nvm/versions/node/v24.4.0/bin/node)
   npm    : 11.4.2
   OS     : macOS Unknown

Appreciate any guidance in terms of what I may be missing or doing wrong here or if there is anything else I can provide in helping understand the issue.

Thanks,
Sanjay.

1 Like

I am facing the same problem now. Followed all instructions to the letter along with a lot of troubleshooting for setting it up, yet I still am unable to get SQLite working in the browser due to this error. Have you figured out the problem in the meantime?

I’m seeing the same exact error when trying use @capacitor-community/sqlite with Quasar.