Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jeep-sqlite_loader does not export applyPolyfills #592

Open
slgotting opened this issue Sep 25, 2024 · 2 comments
Open

jeep-sqlite_loader does not export applyPolyfills #592

slgotting opened this issue Sep 25, 2024 · 2 comments
Labels
bug/fix Something isn't working needs: triage

Comments

@slgotting
Copy link

slgotting commented Sep 25, 2024

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 [email protected]: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

@slgotting slgotting added bug/fix Something isn't working needs: triage labels Sep 25, 2024
@slgotting slgotting changed the title bug: jeep-sqlite_loader does not export applyPolyfills jeep-sqlite_loader does not export applyPolyfills Sep 25, 2024
@kvskandakumar
Copy link

@slgotting, Are there any updates on this issue? Will it be addressed, and if so, could you provide an estimated timeframe for the fix? Additionally, I’d appreciate details on the approach being taken to resolve this issue.

@slgotting
Copy link
Author

@kvskandakumar Couldn't figure it out, abandoned local storage for the time being

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix Something isn't working needs: triage
Projects
None yet
Development

No branches or pull requests

2 participants