Replies: 2 comments 7 replies
-
@dikatok can you try to add |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Brooooooklyn I tried both Here is
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Heya,
Recently the team at Turso migrates the wasm binding generation to napi v3 https://github.com/tursodatabase/turso/tree/main/bindings/javascript. I tried building the binding locally and import it from a vite project but keeps getting issue with
@tursodatabase/database-wasm32-wasi
is not generated in the downstream project'snode_modules
.Here is the recap of what I did
rustup target add wasm32-wasip1
In bindings/javascript
npm install --cpu wasm32
npm run build -- --target wasm32-wasip1-threads
In my vite project, in this case using a vanilla template in
bindings/javascript/examples/opfs
npm install ../../ --cpu wasm32
npm run build
npm run dev
vite.config.js
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions