Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assembly script example does not compile #146

Open
arcanist123 opened this issue Jul 1, 2022 · 1 comment
Open

assembly script example does not compile #146

arcanist123 opened this issue Jul 1, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@arcanist123
Copy link

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 arcanist123 changed the title assembly script example does not work assembly script example does not compile Jul 1, 2022
@torch2424
Copy link
Owner

Ah! Thank you very much for finding this! Yeah, it looks like as-wasi was changed to use that path instead: jedisct1/as-wasi@358cc48

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 torch2424 self-assigned this Jul 6, 2022
@torch2424 torch2424 added the bug Something isn't working label Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants