-
Notifications
You must be signed in to change notification settings - Fork 300
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: build wasm filenames not as expected #310
Comments
Which version of Wrangler did this work with before? Could you post the contents of your |
I was previously on wrangler 2.1.9, but the issue was present on both 2.1.9 and after upgrading to 2.13.0. It appears the underlying issue was with the It seems like there's a dependency link missing somewhere in this chain. |
Sorry for the delayed response on this, glad you found the root of the issue. |
any updates or workarounds here? |
Here's a workaround for those looking. Change your
|
same here
|
cross posted here: cloudflare/rustwasm-worker-template#41 |
Same under linux. I feel like cloudflare workers are abandoned |
Yep fixed my issue. Here is my fixed name = "name"
workers_dev = true
compatibility_date = "2022-01-20"
main = "build/worker/shim.mjs"
[[rules]]
globs = [ "**/*.wasm" ]
type = "CompiledWasm"
[build]
command = "cargo install -q worker-build --version ^0.0.8 && worker-build --release" # required
|
@kflansburg I believe you should be able to close this now? It looks to me as if this issue no longer exists with the latest version of workers. |
|
Which Cloudflare product(s) does this pertain to?
Wrangler
What version of
Wrangler
are you using?2.13.0
What operating system are you using?
Windows, WSL and Linux
Describe the Bug
After not running wrangler for a couple months, I tried to deploy and encountered the following error:
Looking at the build directory, it appears that
index.wasm
is being generated but noindex_bg.wasm
, which is causing esbuild to fail.I have not made any changes to my code or build configuration, just tried re-running workflows that worked 2 months ago with an updated version of wrangler.
The text was updated successfully, but these errors were encountered: