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

Example: running vite dev - offline - firefox not loading evolu/sqlite wasm #424

Open
negue opened this issue May 31, 2024 · 4 comments
Open

Comments

@negue
Copy link
Collaborator

negue commented May 31, 2024

Copied the vite example to its own folder, installed all by pnpm i it was still missing the following deps:

    "workbox-window": "7.1.0",
    "effect": "3.2.7",
    "@effect/schema": "0.67.16"

once added those, I switched to offline mode (wifi off), on Firefox with minimumLogLevel: "trace", I get the following logs:

20:20:22:909 [Evolu] Db init  Object { schema: {…} } [Config.js:38:27]
(http://localhost:5174/node_modules/.pnpm/@evolu+common@5.2.0_@effect+platform@0.55.3_@effect+schema@0.67.16_effect@3.2.7__effect@3.2.7_aojottvlhxt35727f7bol4eaha/node_modules/@evolu/common/dist/src/Config.js?v=2d892ba1)

20:20:22:910 [Evolu] SqliteFactory createSqlite [Config.js:38:27]
(http://localhost:5174/node_modules/.pnpm/@evolu+common@5.2.0_@effect+platform@0.55.3_@effect+schema@0.67.16_effect@3.2.7__effect@3.2.7_aojottvlhxt35727f7bol4eaha/node_modules/@evolu/common/dist/src/Config.js?v=2d892ba1)

20:20:22:912 [Evolu] SqliteWeb connection lock request [Config.js:38:27]
(http://localhost:5174/node_modules/.pnpm/@evolu+common@5.2.0_@effect+platform@0.55.3_@effect+schema@0.67.16_effect@3.2.7__effect@3.2.7_aojottvlhxt35727f7bol4eaha/node_modules/@evolu/common/dist/src/Config.js?v=2d892ba1)
Exception loading sqlite3 module: TypeError: NetworkError when attempting to fetch resource. 
[sqlite3-bundler-friendly.mjs:14455:17](http://localhost:5174/node_modules/.pnpm/@sqlite.org+sqlite-wasm@3.46.0-build1/node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/sqlite3-bundler-friendly.mjs?v=2d892ba1)

20:20:22:913 [Evolu] Fiber terminated with an unhandled error [Config.js:38:27]
(http://localhost:5174/node_modules/.pnpm/@evolu+common@5.2.0_@effect+platform@0.55.3_@effect+schema@0.67.16_effect@3.2.7__effect@3.2.7_aojottvlhxt35727f7bol4eaha/node_modules/@evolu/common/dist/src/Config.js?v=2d892ba1)

[vite] connected.

That is sadly all I get logged :(

Also tested it on Safari, Chrome and Vivaldi, on all it still worked fine, means WebKit does not have any issue only on Firefox weirdly

@steida
Copy link
Contributor

steida commented May 31, 2024

Thank you for reporting; it's probably the https://github.com/sqlite/sqlite-wasm issue.

@steida
Copy link
Contributor

steida commented May 31, 2024

Or it could be a specific Firefox issue... What about production, is it working?

@steida
Copy link
Contributor

steida commented May 31, 2024

@negue
Copy link
Collaborator Author

negue commented May 31, 2024

on Production, while not being offline it still works, like I tested www.evolu.me and it works,

so far its only an issue while being offline and using Firefox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants