workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: Error with Rust 1.82.0 in Wrangler

Open agustfricke opened this issue 1 year ago • 1 comments

Which Cloudflare product(s) does this pertain to?

Wrangler

What version(s) of the tool(s) are you using?

wrangler 3.81.0, rustc 1.82.0

What version of Node are you using?

20.10.0

What operating system and version are you using?

Ubuntu 22.04

Describe the Bug

Observed behavior

When using Rust version 1.82.0, running npx wrangler dev or npx wrangler deploy can result in an error related to WebAssembly imports. The error message may vary slightly but typically includes. ✘ [ERROR] service core:user:rs-worker: Uncaught LinkError: WebAssembly.Instance(): Import #2 "./index_bg.js" "__wbg_fetch_bc7c8e27076a5c84": function import requires a callable at null. (shim.js:41:9) ✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above.

When downgrading to Rust version 1.81.0, the problem disappears and everything works as expected.

Expected behavior

The runtime should start successfully when using npx wrangler dev or npx wrangler deploy without producing errors in the console.

Steps to reproduce

Please provide the following:

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

✘ [ERROR] service core:user:rs-worker: Uncaught LinkError: WebAssembly.Instance(): Import #2 "./index_bg.js" "__wbg_fetch_bc7c8e27076a5c84": function import requires a callable at null. (shim.js:41:9) ✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above.

agustfricke avatar Oct 19 '24 18:10 agustfricke