capacitor-community / capacitor-community/sqlite
jeep-sqlite_loader does not export applyPolyfills
- 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
Assessment
This issue has not been assessed yet.