-
Notifications
You must be signed in to change notification settings - Fork 102
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
Where do I get sql-wasm.wasm ? #46
Comments
Hey @timwis I just downloaded the https://github.com/jlongster/absurd-sql/blob/master/src/examples/sql-wasm.wasm In my react application where I'm testing this library I put it in the public/wasm/bin folder and it works. When I initialize it with initSQLJs it looks like this
|
Thanks, but:
|
As for 1., check https://github.com/jlongster/absurd-example-project, that file is there.
|
I just ran into this problem myself, which had been causing me quite a headache for several hours today. Didn't realize for a while that the problem was that my browser couldn't find |
Overall, it's not a good practice to copy wasm file to your public dir, then you will lose ability to receive updates. It's better to import from lib. Here how you can do with CRA:
Or with vite:
Also, this might help you https://trong-orm.netlify.app/core/usage https://trong-orm.netlify.app/backends/web (it's an abstraction layer, that makes it easier to use absurd-sql. There is also CRA and vite repo example) |
Hi! Really excited by this project. I'm trying it out locally, using the directions in the readme, and my browser's making a request for
/js/sql-wasm.wasm
which throws a 404 as it doesn't exist. Not sure what's calling it, or where it's supposed to be. Any suggestions?I see it as a static file in the example repo, but the readme doesn't mention it 🤔
The text was updated successfully, but these errors were encountered: