workers-rs
workers-rs copied to clipboard
[BUG] Error: %1 is not a valid Win32 application. (os error 193)
Is there an existing issue for this?
- [X] I have searched the existing issues
What version of workers-rs are you using?
0.0.11
Describe the bug
When calling wrangler dev I get the following error:
Error: %1 is not a valid Win32 application. (os error 193)
X [ERROR] Command failed with exit code 1: cargo install -q worker-build && worker-build --release
Steps To Reproduce
Windows 10 Visual Studio 2022 Community Build Tools 2022 Wrangler 2.0.28 Workers 0.0.11
Reproducible in this repository: https://github.com/CodeCrowCorp/infinibuild-api
I've identified the issue and have a plan to fix it soon, but in the mean time having esbuild on your path should do as a workaround.
no, having esbuild in my path won't fix %1 is not a valid Win32 application for me.
Re-opening until the next release for visibility
Workaround to use the "fixed" build - edit your build-command to the following:
cargo install -q --git https://github.com/cloudflare/workers-rs && worker-build --release
Closing this, worker-build v0.0.8 has just released. Update your build.command to
[build]
command = "cargo install -q worker-build --version 0.0.8 && worker-build --release"
am I missing something?
(the Chinese sentence means [Error: %1 is not a valid Win32 application. (os error 193)]))