capacitor-community / capacitor-community/sqlite

jeep-sqlite_loader does not export applyPolyfills

Open
#592 4 comments 1 reaction 0 assignees View on GitHub
bug/fix needs: triage
Dominant language
Swift
Stars
661
Forks
158
PR merge metrics
No merged PRs in 30d

Description

**Plugin version:**

@capacitor-community/sqlite == 6.0.2
jeep-sqlite == 2.8.0

**Platform(s):**

Database not saving on web but works on android

**Current behavior:**

Database doesn't persist in browser

**Expected behavior:**

Database persists in browser

**Steps to reproduce:**

git clone git@github.com:jepiqueau/vite-sveltekit-capacitor-sqlite.git
cd vite-sveltekit-capacitor-sqlite
npm i
npm audit fix
npm i @capacitor/cli@latest @capacitor/core@latest @capacitor/android@latest @capacitor/ios@latest @capacitor-community/sqlite@latest --force

In src/routes/+layout.svelte, remove applyPolyfill:

// applyPolyfills().then(() => {
pwaElements(window);

jeepSqlite(window);
// });

**Additional Notes**

The data persists using the old version (5.7.2 I think) but upon upgrade, I don't know how to apply the necessary polyfills

I'm happy to apply the changes to the example repo

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.