Skip to content

[COMPILE ERROR] Mismatched Tauri Versions #2

@outtieTV

Description

@outtieTV

Tested on Windows 11 x64 Home and Ubuntu x64 26.04

C:\Users\[myname]\Downloads\RealmLister-main>pnpm tauri dev
$ tauri "dev"
     Running BeforeDevCommand (`npm run dev`)
     Running DevCommand (`cargo  run --no-default-features --color always --`)
        Info Watching C:\Users\jacob\Downloads\RealmLister-main\src-tauri for changes...
    Updating [crates.io](https://crates.io/) index

> realmlister@0.1.0 dev
> vite

       Error Found version mismatched Tauri packages. Make sure the NPM package and Rust crate versions are on the same major/minor releases:
tauri (v2.10.2) : @tauri-apps/api (v2.11.0)
tauri-plugin-dialog (v2.6.0) : @tauri-apps/plugin-dialog (v2.7.1)

My hotfix:
Edit RealmLister-main\src-tauri\cargo.toml
Replace:

[dependencies]
tauri = { version = "2", features = [] }

with:

[dependencies]
tauri = { version = "2.6.0", features = [] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions