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

function import requires a callable LinkError error with Cloudflare workers WASM #2155

Open
pawurb opened this issue Oct 17, 2024 · 2 comments

Comments

@pawurb
Copy link

pawurb commented Oct 17, 2024

Hi. I'm trying to use the project with Cloudflare Rust workers. I can compile using a custom target and wasm32_unknown_unknown_js flag. But adding any import results in:

Uncaught LinkError: WebAssembly.Instance(): Import #9 "./index_bg.js" "__wbg_error_53abcd6a461f73d8": function import requires a callable

    at null.<anonymous> (shim.js:41:9)

✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above

when running npx wrangler dev

I've recreated the issue here: https://github.com/pawurb/ring-wasm-test . Any tips how to resolve it will be appreciated.

@agustfricke
Copy link

With Rust version 1.82.0, I was getting the same error. Just downgrade Rust to version 1.81.0, which works. You can do this with the command: rustup install 1.81.0, rustup default 1.81.0. cloudflare/workers-sdk#7028, Regards!

@pawurb
Copy link
Author

pawurb commented Oct 19, 2024

@agustfricke thanks, but i'm getting the same error on 1.80, 1.81, and 1.82 . I'm using a bunch of crates in my cf-workers project, and so far ring is the only one triggering this bug.

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

2 participants