https://kotlinlang.org logo
#webassembly
Title
# webassembly
d

daphillips

12/02/2023, 6:00 AM
has anyone fooled around with okio (https://square.github.io/okio/) and Wasm? Trying to get some basic file IO in Node but I keep getting
Error: Cannot find package 'wasi_snapshot_preview1'
m

mbonnin

12/02/2023, 6:12 PM
I don't think okio has a wasi target yet? I had it work in wasm-js some time ago before wasi was a thing
d

daphillips

12/02/2023, 6:41 PM
I'm getting that with the
wasmJs
target
m

mbonnin

12/02/2023, 6:42 PM
Oh. Interesting... I'm fiddling with okio + wasm at the moment. Will let you know if I have any success
d

daphillips

12/02/2023, 6:43 PM
Awesome please do!
j

jessewilson

12/03/2023, 5:13 AM
wasmJs doesn’t have WASI, so the crash is saying something real
Okio needs a new release now that there’s different WASI targets
6 Views