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

🐛 BUG: Uncaught TypeError: WebAssembly.Instance(): Import #3 "env": module is not an object or function #6718

Open
SnowyThinker opened this issue Sep 14, 2024 · 1 comment
Labels
bug Something that isn't working needs reproduction Needs reproduction from OP

Comments

@SnowyThinker
Copy link

Which Cloudflare product(s) does this pertain to?

Wrangler

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

wrangler 3.78.2

What version of Node are you using?

v18.16.0

What operating system and version are you using?

13.3.1 (a) (22E772610a)

Describe the Bug

npx wrangler deploy

⛅️ wrangler 3.78.2

Running custom build: cargo install -q worker-build && worker-build --release
[INFO]: 🎯 Checking for the Wasm target...
[INFO]: 🌀 Compiling to Wasm...
Finished release [optimized] target(s) in 0.11s
[INFO]: ⬇️ Installing wasm-bindgen...
[INFO]: found wasm-opt at "/usr/local/bin/wasm-opt"
[INFO]: Optimizing wasm binaries with wasm-opt...
[INFO]: Optional fields missing from Cargo.toml: 'description', 'repository', and 'license'. These are not necessary, but recommended
[INFO]: ✨ Done in 1.68s
[INFO]: 📦 Your wasm pkg is ready to publish at /Users/andrew/workbench/souce/rust/rust-saas-worker/build.

shim.mjs 16.8kb

⚡ Done in 12ms
Total Upload: 629.76 KiB / gzip: 276.16 KiB
Your worker has access to the following bindings:

  • Vars:
    • WORKERS_RS_VERSION: "0.0.9"

✘ [ERROR] A request to the Cloudflare API (/accounts/96caf513731edfceef7fbfe4084e9222/workers/scripts/rust-saas-worker/versions) failed.

Uncaught TypeError: WebAssembly.Instance(): Import #3 "env": module is not an object or function
at null.
(file:///Users/andrew/workbench/souce/rust/rust-saas-worker/build/worker/shim.mjs:1:2748)
[code: 10021]

If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

@SnowyThinker SnowyThinker added the bug Something that isn't working label Sep 14, 2024
@penalosa
Copy link
Contributor

Thanks for reporting this! Would you be able to provide a reproduction repo that demonstrates the issue?

@penalosa penalosa added the needs reproduction Needs reproduction from OP label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working needs reproduction Needs reproduction from OP
Projects
None yet
Development

No branches or pull requests

2 participants