nightly: Linker error / wasm-bindgen
pulling in env
library in generated JS
#141085
Labels
C-bug
Category: This is a bug.
Uh oh!
There was an error while loading. Please reload this page.
See bevyengine/bevy#19225.
On Bevy, we have run into an issue on nightly where we either get a linker error or invalid bindings with
wasm-bindgen
.Linker error on native
Invalid bindings created by
wasm-bindgen
:So it's trying to import from an
env
package that doesn't exist.I cannot reproduce the issue on
beta
orstable
toolchains, not sure if this indicates a bug in the compiler.We discovered that nightly 2025-05-14 still works, hopefully that helps to track down the issue.
To reproduce, see this repository: https://github.com/TimJentzsch/bug_wasm-bindgen_env
It includes scripts to reproduce the error.
I tried to minimize it as much as I could.
Meta
rustc --version --verbose
:This bug report was brought to you by RustWeek 2025.
If you're at the venue, come talk to me in the Bevy unconf room!
The text was updated successfully, but these errors were encountered: