-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Does not work in node as advertised #517
Comments
I'm using [email protected] with ES modules and had to explicitly set a path to the wasm binary: const wasmBinary = await readFile(new URL("../node_modules/sql.js/dist/sql-wasm.wasm", import.meta.url));
const SQLJS = await initSql({
wasmBinary,
}); Hope that helps! |
Read again carefully, there's two parameters in
|
I am facing the same issue on an existing project where the only change I did was in node version to 20. Seems like Node 18 issue now. |
With given package.json:
Here's the result of
node -e 'require("sql.js")()'
:The text was updated successfully, but these errors were encountered: