workers-rs icon indicating copy to clipboard operation
workers-rs copied to clipboard

[BUG] Error: %1 is not a valid Win32 application. (os error 193)

Open gagansuie opened this issue 3 years ago • 2 comments
trafficstars

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

gagansuie avatar Sep 06 '22 21:09 gagansuie

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.

zebp avatar Sep 08 '22 13:09 zebp

no, having esbuild in my path won't fix %1 is not a valid Win32 application for me.

TTTPOB avatar Sep 20 '22 13:09 TTTPOB

Re-opening until the next release for visibility

zebp avatar Sep 24 '22 15:09 zebp

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

ByteAlex avatar Oct 17 '22 00:10 ByteAlex

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"

zebp avatar Nov 14 '22 20:11 zebp

image am I missing something? (the Chinese sentence means [Error: %1 is not a valid Win32 application. (os error 193)]))

TTTPOB avatar Nov 17 '22 04:11 TTTPOB