How to import a npm package that relies on Wasm
I'm trying to import
npm:@biscuit-auth/biscuit-wasm@0.4.0
and I wrote the following script:
However, I get the following error:
Looking at this stackoverflow post https://stackoverflow.com/questions/43122335/what-does-stream-did-not-contain-valid-utf-8-mean tells me that this error message comes from rust directly.
Separately, I also tried out the following in node js:
and ran it with
and it ran fine with no issues:
Could this be part of the solution? Does deno have a --experimental-wasm-modules
or something similar that I need to use, or is this an issue with how Deno imports wasm packages from npm?Stack Overflow
What does "Stream did not contain valid UTF-8" mean?
I'm creating a simple HTTP server. I need to read the requested image and send it to browser. I'm using this code:
fn read_file(mut file_name: String) -> String {
file_name = file_name.rep...
0 Replies