Skip to content

import of wasi:http@0.2.3 is not disabled with 0.18.3 #265

@alexcasalboni

Description

@alexcasalboni

I'm doing this:

npx @bytecodealliance/componentize-js@0.18.3 src/index.js --wit wit -o component.wasm -n my-world -d http

but the resulting component still imports wasi:http so it can't run because my host doesn't provide it access to wasi:http.

Note: the component is successfully compiled with no error. You only get an error when trying to execute the component:

component imports instance wasi:http/types@0.2.3, but a matching implementation was not found in the linker


If I run the same with the previous version (0.18.2), everything works fine:

npx @bytecodealliance/componentize-js@0.18.2 src/index.js --wit wit -o component.wasm -n my-world -d http

Since jco recently merged the upgrade to 0.18.3 (bytecodealliance/jco#620), I can't use the latest jco@1.12.0 release either.

Any workaround? Or does this need a new release to fix?

Thank you 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions