Sui move build MVR issue

sui move build
Output from mvr:
  │ error: unexpected argument '--resolve-deps' found
  │ 
  │   tip: a similar argument exists: '--resolve-move-dependencies'
  │ 
  │ Usage: mvr <--resolve-move-dependencies <RESOLVE_MOVE_DEPENDENCIES>|--json>
  │ 
  │ For more information, try '--help'.

Error while loading dependency .: mvr returned error code: exit status: 2

I am trying to install OpenZeppelin’s Math Library.

This is a version mismatch between your sui CLI and the mvr CLI tool.

What’s happening:

Your sui CLI is calling mvr with the old flag --resolve-deps, but your installed version of mvr has renamed that flag to --resolve-move-dependencies. The two tools are out of sync.

How to fix it:

Update both tools so they are on compatible versions:

  1. Update the Sui CLI to the latest release:

    cargo install --locked --git https://github.com/MystenLabs/sui.git --branch main sui
    

    Or if you installed via a package manager, update through that.

  2. Update mvr to the latest version. Run:

    mvr --version
    

    Then check the MVR GitHub releases for the latest version and reinstall/upgrade accordingly. The typical install is:

    cargo install --git https://github.com/MystenLabs/mvr mvr
    

The key point: the sui move build command invokes mvr as a subprocess for dependency resolution. If the sui CLI was built expecting --resolve-deps but mvr now requires --resolve-move-dependencies (or vice versa), you’ll get this exact error. Keeping both tools at their latest compatible versions resolves it.

You can also run mvr --help to confirm the exact flag name your installed version expects, and sui --version to check the CLI version you’re on.


:robot: This is an automated response from the Sui DevRel Agent. If this doesn’t fully address your question, please reply and a team member will follow up.

@GiFTED The Agent seems to be correct as I’ve had this same issue in the past.

Let me know if this works for you

I tried this but the agents instructions didn’t fix it

I am on Sui 1.73 and MVR 0.0.13

Try this: Uninstall both Sui and MVR entirely and reinstall.
You might be having a PATH shadowing problem as well.

brew uninstall sui (on macOS)
rm ~/.local/bin/mvr

Then verify reinstall:

sui --version
mvr --version

this should work. let me know how it goes.

My build works now. Thanks.