Skip to content

[BUG] Uncaught LinkError: WebAssembly.Instance(): Import #15 "./index_bg.js" #654

Closed
@lopld

Description

@lopld

Is there an existing issue for this?

  • I have searched the existing issues

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

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

✘ [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

스크린샷 2024-10-17 205927

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions