-
Notifications
You must be signed in to change notification settings - Fork 284
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
[BUG] Uncaught LinkError: WebAssembly.Instance(): Import #15 "./index_bg.js" #654
Comments
I'm also seeing this error. I can trigger it when trying to update the |
Are you also running in Windows? |
Running on macOS. (I messaged you more details in internal company chat.) |
This just started happening for my Cloudflare Build process that has been working for weeks.
|
same problem here. is |
I suspect this is a problem on Cloudflare side. I am getting the same error message using a project with old Wrangler/worker versions. |
So far I have been unable to reproduce this. Has anyone been able to reproduce this from a fresh project (hello world template)? If you are able to reproduce, can you share the following versions: I suspect that this may be an issue with workerd or miniflare. @jasnell does this look like something we have touched recently? |
I think this might have to do with running on rust nightly. I just encountered the issue from the
Then switching rust to stable, it works:
|
Thanks Luke, looks like I am able to reproduce on Rust nightly. |
The problem was resolved when using the stable version of Rust. |
It's not nightly, it's Rust version 1.82. I downgraded to 1.81 and was able to deploy. This might be a problem with wasm-bindgen: rustwasm/wasm-bindgen#4211 |
Just in case someone wants to fix the Cloudflare build process, I changed my script to pull the specific version I'm working on locally. I assume this works by avoiding the 1.82 build.
I hope the Cloudflare build environment will eventually handle this in a more intuitive way, perhaps with toml like GitHub or with a better prebuild image to use. |
This also pin the Rust toolchain to 1.81.0. We can look into removing this pin once the issue between the wasm bindings between 1.82 and Node 18. ### References - rustwasm/wasm-bindgen#4211 - cloudflare/workers-rs#654
Bumping this, still an issue |
Downgrade to 1.81 stable. |
This workaround seems to work on the current rust stable (1.82.0): webpack/webpack#15566 (comment). Add this to
The next release of |
Is there an existing issue for this?
What version of
workers-rs
are you using?0.4.2
What version of
wrangler
are you using?3.80.5
Describe the bug
Running custom build: cargo install -q worker-build && worker-build --release
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
[INFO]: 🎯 Checking for the Wasm target...
[INFO]: 🌀 Compiling to Wasm...
Finished
release
profile [optimized] target(s) in 0.17s[INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended
[INFO]: ✨ Done in 0.57s
[INFO]: 📦 Your wasm pkg is ready to publish at C:\git\cf_workers_images\build.
The file src changed, restarting build...
Running custom build: cargo install -q worker-build && worker-build --release
[wrangler:inf] Ready on http://127.0.0.1:8787
╭──────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
[INFO]: 🎯 Checking for the Wasm target...
[INFO]: 🌀 Compiling to Wasm...
Finished
release
profile [optimized] target(s) in 0.16s[INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended
[INFO]: ✨ Done in 0.54s
[INFO]: 📦 Your wasm pkg is ready to publish at C:\git\cf_workers_images\build.
⎔ Starting local server...
✘ [ERROR] service core:user:cf_workers_images: Uncaught LinkError: WebAssembly.Instance(): Import #15 "./index_bg.js" "__wbg_error_53abcd6a461f73d8": function import requires a callable
✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above.
If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
What is index_bg.js???
Steps To Reproduce
The text was updated successfully, but these errors were encountered: