Cannot Load Wasm URL Scheme File Is Not Supported
Solution 1:
I had the same error following the same page in the sql.js documentation.
The error is avoided by using sql-asm.js instead of sql-wasm.js. As the document says further down the page: "sql-asm.js The older asm.js version of Sql.js. Slower and larger. Provided for compatibility reasons."
This is preferable for me than spinning up a web server or trying to "encode the wasm as base64" as some other threads suggest (which is way beyond me while just trying to create a simple stand-alone .html page linked to a sqlite file).
Solution 2:
You are trying to load the WASM file from a local file, which does not work.
But you can easily just spin up a webserver (by using e.g. NodeJS) on your local machine, and then run your test code from there, so it accesses it using a proper URL instead of a local file on your PC.
Post a Comment for "Cannot Load Wasm URL Scheme File Is Not Supported"