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

Flutter: error "cannot find definition for import wasi_snapshot_preview1" #59

Open
jvinai opened this issue Jun 27, 2024 · 0 comments
Open

Comments

@jvinai
Copy link

jvinai commented Jun 27, 2024

Hi!

Im making a flutter app that will use a wasm file that uses wasi1 and when i try to use wasm_run_flutter i get this error:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: FrbAnyhowException(cannot find definition for import wasi_snapshot_preview1::sched_yield with type Func(FuncType { params: [], results: [I32] }))

It seems it doesnt have wasi1 defintion included.
The code i use is your example code and i load the wasm binary instead of your inline base64 wasm code.
https://github.com/juancastillo0/wasm_run/blob/main/packages/wasm_run_flutter/example/lib/main.dart

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant