Closed danbugs closed 5 months ago
I think there was a mismatch between the versions of jco
and componentize-js
. After running:
npm install -g @bytecodealliance/jco@1.2.4
, andnpm install -g @bytecodealliance/componentize-js@0.8.3
.And re-running the example, I get the expected console.log
! Closing the issue :)
I created a simple JS module, like:
It implements the following WIT:
To get
wasi:cli/imports@0.2.0
I just copied the entiredeps
folder here: https://github.com/bytecodealliance/wasmtime/tree/main/crates/wasi/wit/deps .Then, I componentize the JS module partnered w/ the WIT file, like:
jco componentize greet.js --wit .\wit\ --world-name example --out greet.wasm
.To test this all out, I implemented a custom host, like:
Running this, I expected to see "Hello, World!" printed to the console, but, instead, I get absolutely nothing.