leptos-rs / start-wasi

A starter template for a WASI SSR server with Leptos
The Unlicense
1 stars 0 forks source link

Unable to run produced binary #3

Closed benwis closed 1 week ago

benwis commented 1 week ago

Following the steps in the readme, I get this error:

❯ wasmtime serve target/server/wasm32-wasip2/debug/wasi_test.wasm
Error: component imports instance `wasi:cli/environment@0.2.2`, but a matching implementation was not found in the linker

Caused by:
    0: instance export `get-environment` has the wrong type
    1: function implementation is missing
raskyld commented 1 week ago

Yep!

You need to add the -Scli arg to the command, I will add it to the default command because even in vanilla you need it.