Skip to content

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

Open
@negue

Description

@negue

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions