wasm-by-example icon indicating copy to clipboard operation
wasm-by-example copied to clipboard

assembly script example does not compile

Open arcanist123 opened this issue 3 years ago • 1 comments

if you try to follow the example with the current version that is available, the asc will give you an error ERROR TS6054: File '~lib/as-wasi.ts' not found. the error can be fixed by changing the import { Console, FileSystem, Descriptor } from "as-wasi" to import { Console, FileSystem, Descriptor } from "as-wasi/assembly";

arcanist123 avatar Jul 01 '22 21:07 arcanist123

Ah! Thank you very much for finding this! Yeah, it looks like as-wasi was changed to use that path instead: https://github.com/jedisct1/as-wasi/commit/358cc48953060a83b52413dff82cf6e5dd8e131c

I'll go ahead and update this next time I'm at my programming computer! Happy to accept a PR as well! Thank you! 😄 🙏🏾

torch2424 avatar Jul 06 '22 17:07 torch2424