wasm-pack icon indicating copy to clipboard operation
wasm-pack copied to clipboard

`wasm-pack build` hangs with no output for over 3 minutes

Open jameshfisher opened this issue 2 years ago • 6 comments

🐛 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

jameshfisher avatar Feb 20 '23 20:02 jameshfisher

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

LuminousPath avatar Jun 14 '23 07:06 LuminousPath

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

drager avatar Jun 17 '23 13:06 drager

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

Chronostasys avatar Jun 26 '23 04:06 Chronostasys

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.

Chronostasys avatar Jun 26 '23 05:06 Chronostasys

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)

ultraviolet-jordan avatar Jul 24 '24 00:07 ultraviolet-jordan