The Wayback Machine - https://web.archive.org/web/20230129055746/https://github.com/sql-js/sql.js/issues/446
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

sql-wasm.js does not work on Electron-react-app #446

Open
devSolutions570 opened this issue Apr 6, 2021 · 1 comment
Open

sql-wasm.js does not work on Electron-react-app #446

devSolutions570 opened this issue Apr 6, 2021 · 1 comment

Comments

@devSolutions570
Copy link

devSolutions570 commented Apr 6, 2021

After I import the sql.js on my electron-react project, I got following error(Cannot set property 'exports' of undefined).
I have checked sql-wasm.js, found the issue.
the Process.versio.node is null on almost react app.
But my app has the correct version.
In this case, the error is caused on sql-wasm.js(row:92).
Currently I have customized the sql-wasm file to use sql.js and avoid this issue.
from
module = undefined
to
module = {
exports: {}
}

so this does work current, but I need the perfect sql.js library.
Please, have a look and fix.
Thanks.

@awesome194
Copy link

I'm having the same issue with sql-wasm

"In this case, the error is caused on sql-wasm.js(row:92).
Currently, I have customized the sql-wasm file to use sql.js and avoid this issue.
from
module = undefined
to
module = {
exports: {}
}
"

This is correct, I believe.
Thanks

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

No branches or pull requests

2 participants