You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i've cloned https://github.com/cloudflare/rustwasm-worker-template, replaced project name in cargo.yaml and wrangler.toml and tried to run deprecated wrangler build or wrangler deploy --dry-run and both are failing with same error:
❯ wrangler deploy --dry-run --outdir=dist
⛅️ wrangler 3.2.0
------------------
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.08s
[INFO]: ⬇️ Installing wasm-bindgen...
[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 0.61s
[INFO]: 📦 Your wasm pkg is ready to publish at /Users/mk/src/cf_workers/rustwasm-relevant-features-reverse-proxy/build.
✘ [ERROR] Could not resolve "./index_bg.wasm"
index_bg.js:1:22:
1 │ import * as wasm from './index_bg.wasm';
╵ ~~~~~~~~~~~~~~~~~
1 error
Error: esbuild exited with status exit status: 1
✘ [ERROR] Command failed with exit code 1: cargo install -q worker-build && worker-build --release
The text was updated successfully, but these errors were encountered:
Which Cloudflare product(s) does this pertain to?
Wrangler
What version of
Wrangler
are you using?3.2.0
What operating system are you using?
Mac
Describe the Bug
i've cloned https://github.com/cloudflare/rustwasm-worker-template, replaced project name in cargo.yaml and wrangler.toml and tried to run deprecated
wrangler build
orwrangler deploy --dry-run
and both are failing with same error:The text was updated successfully, but these errors were encountered: