wasmer run fails on WASIX packages using the wide-arithmetic proposal: "Failed to create V8 module" with no way to select a non-V8 engine
Describe the bug
Running a published WASIX package whose module uses the wide-arithmetic proposal fails on current Windows builds with:
error: compile error: Validate("Failed to create V8 module: null module reference returned from V8")The V8 runtime cannot compile these modules, and the 7.4.2 CLI provides no way to select a different engine — wasmer run --help only offers --v8; --cranelift / --llvm / --singlepass are rejected as unknown arguments. So there is currently no user-side workaround on recent releases.
Example package: wasmer/wisp-server v0.0.6. The command below is the one suggested on its registry page (https://wasmer.io/wasmer/wisp-server), so the page's own instructions are currently broken on Windows.
$ wasmer -vV
wasmer 7.4.2
binary: wasmer-cli
commit-hash: 7a48a071c7682a409d148cf37dc8da58322a123d
commit-date: 2026-09-16
host: x86_64-pc-windows-msvc(Prebuilt binaries; rustc is not involved — this is about running a published package. Installed via winget Wasmer.Wasmer; the official wasmer-windows-amd64.tar.gz tarball of 7.4.2 behaves identically.)
Steps to reproduce
Windows 11 (10.0.22000), x86_64, wasmer 7.4.2 (MSI or official tarball)
Run the command suggested on the package's registry page:
wasmer run wasmer/wisp-server --netSee error:
error: compile error: Validate("Failed to create V8 module: null module reference returned from V8")
The same error appears with --enable-all, --wide-arithmetic, and --enable-async-threads=true — these flags don't help because the V8 runtime rejects the module regardless.
Expected behavior
The server starts and listens on 0.0.0.0:4000, as documented on the package page (and as it does with the workaround below).
Analysis
The module really does use the wide-arithmetic proposal. Running the same package with wasmer 6.1.0 (Cranelift-based) surfaces an explicit error pointing at it:
error: Spawn failed ╰─▶ 1: compile error: Validate("wide arithmetic support is not enabled (at offset 0x432df)")On the 7.4.2 Windows builds the default runtime is V8. When V8 fails to compile the module, the returned module handle is null, which surfaces as
null module reference returned from V8.Per the changelog, V8 was disabled in the official tarballs at 7.0.0 (
build(v8): disable in the official tarballs) and re-enabled around 7.2.0 (CI: enable V8 for Wasmer builds,feat(V8): enable some WASIX tests on Windows). That version window matches where this package stops working.Interestingly, several
wasmer runflags are documented as "Available for Cranelift, LLVM and Singlepass", which suggests those engines are still compiled in — there is just no way to select them from the CLI.
Versions tested (same machine, same package)
| Build | Engine used | Result |
|---|---|---|
| 7.4.2 winget/MSI | V8 (default, not selectable) | Failed to create V8 module: null module reference returned from V8 |
| 7.4.2 official tarball | V8 (default, not selectable) | same error |
| 6.1.0 tarball | Cranelift | wide arithmetic support is not enabled (at offset 0x432df) — wide-arithmetic isn't supported/enabled in that version (--enable-all doesn't include it) |
| 7.1.0 tarball | Cranelift (V8 was disabled in tarballs at that time) | works with --wide-arithmetic |
Workaround
Use the 7.1.0 tarball with the wide-arithmetic proposal enabled:
wasmer run wasmer/wisp-server --net --wide-arithmeticVerified end-to-end: the server starts (listening on (Tcp, "0.0.0.0:4000") with runtime flavor SingleThread and socket transport WebSocket) and serves HTTP 200 on /.
Possible fixes
Either of these would unblock packages like this on current builds:
- Re-expose engine selection in
wasmer run(e.g.--cranelift/--llvm/--singlepassflags, or an env var such asWASMER_ENGINE), or - Support the wide-arithmetic proposal in the V8 runtime so such modules compile there.
Thanks for the great work on wasmer!
Source: wasmerio/wasmer