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

[BUG] The argument '--out-dir <OUT_DIR>' cannot be used multiple times” error in wasm-pack when specifying --out-dir for worker-build. #599

Closed
1 task done
mm1995tk opened this issue Jul 20, 2024 · 1 comment

Comments

@mm1995tk
Copy link

mm1995tk commented Jul 20, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What version of workers-rs are you using?

0.3.0

What version of wrangler are you using?

3.34.2

Describe the bug

The argument '--out-dir <OUT_DIR>' cannot be used multiple times” error in wasm-pack when specifying --out-dir in worker-build.

It was caused by parse with duplicated options when the user specified the option specified in build_args.
here

Steps To Reproduce

worker-build -t bundler -d custom_dir
# error: the argument '--out-dir <OUT_DIR>' cannot be used multiple times
@mm1995tk
Copy link
Author

I have solved the problem and will close it.
When building with nix, worker-build is giving me
Error: Read-only file system (os error 30).
The purpose was to try to solve this problem by specifying a different directory.

After some research, I was able to resolve the error by specifying a dummy directory for $HOME, referring to the following link.

It is no longer necessary to specify --out-dir.

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

1 participant