wasm-pack
wasm-pack copied to clipboard
`wasm-pack build` hangs with no output for over 3 minutes
🐛 Bug description
I ran the following:
$ wasm-pack build
It hung, and I left it for long enough to decide that it was a bug. I then ran it again and left it long enough to write out half of this bug report, before it miraculously eventually did something:
$ wasm-pack build
[INFO]: 🎯 Checking for the Wasm target...
...
It took at least 3 minutes to print something.
🤔 Expected Behavior
It should tell me what it's doing, and give some indication that it's not stuck in an infinite loop. I imagine you're losing many first-timer users who just assume this tool is broken, Ctrl-C, and move on.
👟 Steps to reproduce
Follow the quickstart until step 5.
🌍 Your environment
Include the relevant details of your environment. wasm-pack version: 0.10.3 rustc version: 1.67.1 (d5a82bbd2 2023-02-07) macOS
I'm also having this issue, but I don't even get as far as the initial [INFO], I'm getting no output whatsoever
environment: wasm-pack version: 0.11.1 rustc version: 1.60.0 windows
Please try out v0.12.0 from one of the following ways:
- https://github.com/rustwasm/wasm-pack/releases/tag/v0.12.0
- https://crates.io/crates/wasm-pack/0.12.0
- https://www.npmjs.com/package/wasm-pack/v/0.12.0
facing same issue using v0.12.0 on macOS, with no output.
environment: wasm-pack version: 0.12.0 rustc version: 1.69.0 macOS
facing same issue using v0.12.0 on macOS, with no output.
environment: wasm-pack version: 0.12.0 rustc version: 1.69.0 macOS
Okey, I found that's probably a network issue. After downloading wasm32-unknown-unknown target the problem disappeared.
I was just following this page here: https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_Wasm
I just had wasm-pack build --target web hang on me for over 30 minutes.
I was under the impression this would take a long time because of this: https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_Wasm#building_the_package
I went searching and came here. Went here and installed: https://rustwasm.github.io/wasm-pack/installer/ (I already had it installed though from the Mozilla doc I was reading) Reinstalled it
Ran wasm-pack build --target web again and ran instantly.
OS: Windows wasm-bindgen = "0.2.92" rustc 1.79.0 (129f3b996 2024-06-10)