Skip to content
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

Panic when --target-dir is supplied #1278

Closed
tomasol opened this issue Apr 29, 2023 · 0 comments · Fixed by #1279
Closed

Panic when --target-dir is supplied #1278

tomasol opened this issue Apr 29, 2023 · 0 comments · Fixed by #1279

Comments

@tomasol
Copy link
Contributor

tomasol commented Apr 29, 2023

🐛 Bug description

Running the latest (48177dc) wasm-pack panics if --target-dir is supplied (and arguments are not sorted )

wasm-pack build --no-typescript --target bundler --out-dir build --dev --target-dir some-target --features some-features
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
    Finished dev [unoptimized + debuginfo] target(s) in 0.24s
[INFO]: ⬇️  Installing wasm-bindgen...
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: 3', src/bindgen.rs:36:14
stack backtrace:
   0: rust_begin_unwind
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/std/src/panicking.rs:579:5
   1: core::panicking::panic_fmt
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/panicking.rs:64:14
   2: core::result::unwrap_failed
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library/core/src/result.rs:1750:5
   3: wasm_pack::bindgen::wasm_bindgen_build
   4: wasm_pack::command::build::Build::step_run_wasm_bindgen
   5: wasm_pack::command::build::Build::run
   6: wasm_pack::command::run_wasm_pack
   7: wasm_pack::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

🤔 Expected Behavior

not panic 🙂

👟 Steps to reproduce

See above

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version: 0.11.0 - 48177dc
rustc version: 1.69.0

tomasol added a commit to tomasol/wasm-pack that referenced this issue Apr 29, 2023
tomasol added a commit to tomasol/wasm-pack that referenced this issue Apr 29, 2023
tomasol added a commit to tomasol/wasm-pack that referenced this issue May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant