Open stepango opened 7 months ago
Try wasmWasi ?
We expose the Node FileSystem in Kotlin/JS only. For WASM we have the WASI FileSystem, which is needs its directories to be specified.
Or if you're in a browser you have to use the JS file system API directly and can't use Okio: https://developer.mozilla.org/en-US/docs/Web/API/File_System_API. In that case you can wrap your file system interactions in a higher-level suspending interface and switch between Okio and native JS implementations.
I'm using following multiplatform configuration for wasm target
trying to add nodefilesystem dep
But getting following error
Which kind of makes sense.
Is there any option for wasmJs to read from real fs the same way it works for js targets?