-
Notifications
You must be signed in to change notification settings - Fork 242
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
Compile errors when building to WASM target #269
Comments
The crate now requires Alternatively, you can also add these two lines to your project's Lines 5 to 6 in 18a5388
|
This compiles, but now I get a bunch of improperly formatted WASM binary that errors when I try to bindgen:
I am unsure whether this is an issue with egui or just some weird bug with the compiler. |
Could you try compiling
|
I tried those features, they didn't appear to change anything. I updated
even after making the changes suggested in the error and recompiling, it still gives me the same error. |
Which one of the suggested commands have you run? I'd expect this to be fixed if you run either of those (but not both). If it doesn't help, maybe check that you don't have multiple versions of |
I updated the version in Cargo.lock for wasm-bindgen, now it starts to load and then panics on some random wgpu pipeline in hanabi |
Opened #270 to help users learn and fix it :) |
The compilation errors are more user friendly now. Thanks everyone |
I'm not sure how this is happening or how this is reproducible, but I have the following in my Cargo.toml:
Compiling with
cargo build --target wasm32-unknown-unknown
produces the following errors:This is happening in a GitHub Codespace on Rust 1.76.0
The text was updated successfully, but these errors were encountered: