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

Extra options --target-dir build error #1076

Closed
utherpally opened this issue Oct 31, 2021 · 1 comment
Closed

Extra options --target-dir build error #1076

utherpally opened this issue Oct 31, 2021 · 1 comment

Comments

@utherpally
Copy link

🐛 Bug description

Run wasm-pack with --target-dir extra-options

wasm-pack build frontend --target web --no-typescript --dev -- --target-dir target/frontend

Raise an error:

error: failed to read `/home/dev/Projects/maple/target/wasm32-unknown-unknown/debug/frontend.wasm`

Caused by:
    0: failed to read `/home/dev/Projects/maple/target/wasm32-unknown-unknown/debug/frontend.wasm`
    1: No such file or directory (os error 2)
Error: Running the wasm-bindgen CLI
Caused by: failed to execute `wasm-bindgen`: exited with exit status: 1
  full command: "/home/dev/.cargo/bin/wasm-bindgen" "/home/dev/Projects/maple/target/wasm32-unknown-unknown/debug/frontend.wasm" "--out-dir" "frontend/pkg" "--no-typescript" "--target" "web" "--debug"

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version: 0.10.1
rustc version: 1.58.0-nightly (514b38779 2021-10-22)

sassman added a commit to sassman/wasm-pack that referenced this issue Nov 17, 2021
sassman added a commit to sassman/wasm-pack that referenced this issue Nov 17, 2021
drager added a commit that referenced this issue Dec 14, 2022
…ssue-1076

fix(#1076): `--target-dir` as extra option is now considered as expected
@drager
Copy link
Member

drager commented Mar 19, 2023

Fixed in #1082 and released in v0.11.0.

@drager drager closed this as completed Mar 19, 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

No branches or pull requests

2 participants