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

Compile Error: Cannot find name 'abort'. #153

Open
Jonarod opened this issue Mar 22, 2023 · 1 comment
Open

Compile Error: Cannot find name 'abort'. #153

Jonarod opened this issue Mar 22, 2023 · 1 comment
Labels

Comments

@Jonarod
Copy link

Jonarod commented Mar 22, 2023

Just following the Quick Start:

// Import from the installed as-wasi package
import { Console, Environ } from "as-wasi/assembly";

// Create an environ instance
let env = new Environ();

// Get the HOME Environment variable
let home = env.get("HOME")!;

// Log the HOME string to stdout
Console.log(home);

Then building asc assembly/index.ts --target release throws compile error:

ERROR TS2304: Cannot find name 'abort'.
     :
 935 │ abort();
     │ ~~~~~
     └─ in ~lib/as-wasi/assembly/as-wasi.ts(935,7)

ERROR TS2304: Cannot find name 'abort'.
     :
 944 │ abort();
     │ ~~~~~
     └─ in ~lib/as-wasi/assembly/as-wasi.ts(944,7)

FAILURE 2 compile error(s)

This error disappears if I don't useEnviron but only Console for example.

Maybe related to #127

Copy link

github-actions bot commented Jan 1, 2025

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the Stale label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant