Example: running vite dev - offline - firefox not loading evolu/sqlite wasm
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/@[email protected]_@[email protected]_@[email protected][email protected][email protected]_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/@[email protected]_@[email protected]_@[email protected][email protected][email protected]_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/@[email protected]_@[email protected]_@[email protected][email protected][email protected]_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/@[email protected]/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/@[email protected]_@[email protected]_@[email protected][email protected][email protected]_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
Thank you for reporting; it's probably the https://github.com/sqlite/sqlite-wasm issue.
Or it could be a specific Firefox issue... What about production, is it working?
Related https://github.com/sqlite/sqlite-wasm/issues/77
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