Skip to content

error: the argument '--release' cannot be used with '--profile <PROFILE-NAME>' #1461

Open
@loynoir

Description

@loynoir

🐛 Bug description

Describe your issue in detail.

error: the argument '--release' cannot be used with '--profile <PROFILE-NAME>'

🤔 Expected Behavior

What should have happened?

$ wasm-pack build --profile x-release --verbose
(No error)

👟 Steps to reproduce

Clear steps describing how to reproduce the issue, including commands and flags run. If you are seeing an error, please include the full error message and stack trace.

$ wasm-pack build --profile x-release --verbose
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
error: the argument '--release' cannot be used with '--profile <PROFILE-NAME>'

Usage: cargo build --lib --release --target [<TRIPLE>] --verbose...

For more information, try '--help'.
Error: Compiling your crate to WebAssembly failed
Caused by: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 1
  full command: cd "/path/to/project" && "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown" "--profile" "x-release" "--verbose"
...

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version:
rustc version:

$ wasm-pack --version                                    
wasm-pack 0.13.1

$ grep -P '^channel' rust-toolchain.toml
channel = "nightly-2025-01-06"

$ rustc --version
rustc 1.86.0-nightly (b3b368a18 2025-01-05)

$ cargo --version                                              
cargo 1.86.0-nightly (fd784878c 2025-01-03)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions