#the package depends on `tauri`, with features: `native-tls` but `tauri` does not have these features

27 messages · Page 1 of 1 (latest)

agile rapids
#

I have not worked on my app for a while, and suddenly when I run npm run tauri dev or cargo tauri dev, I keep getting the error below:

error: failed to select a version for `tauri`.
    ... required by package `portal-interface v0.0.0 (E:\Programming\Tauri\portal-interface\src-tauri)`
versions that meet the requirements `^1.2.4` (locked to 1.2.4) are: 1.2.4

the package `portal-interface` depends on `tauri`, with features: `native-tls` but `tauri` does not have these features.

failed to select a version for `tauri` which could resolve this conflict

I am however not sure what changed and what I should change to make this work, help is appreciated

signal gulch
#

can you share your cargo.toml file please

agile rapids
#
[package]
name = "portal-interface"
version = "0.0.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
edition = "2021"

[build-dependencies]
tauri-build = { version = "1.2", features = [] }

[dependencies]
tauri = { version = "1.2", features = ["api-all", "updater"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tauri-plugin-fs-extra = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }

[features]
custom-protocol = ["tauri/custom-protocol"]
signal gulch
#

can you change the branch of the fs-extra plugin from dev to v1 and run cargo update again?

#

or maybe try change 1.2 to 1.4 in tauri and tauri-build

agile rapids
#

alright

#

Still this error

        Info Watching E:\Programming\Tauri\portal-interface\src-tauri for changes...
error: failed to select a version for `tauri`.
    ... required by package `portal-interface v0.0.0 (E:\Programming\Tauri\portal-interface\src-tauri)`
versions that meet the requirements `^1.4` (locked to 1.4.1) are: 1.4.1

the package `portal-interface` depends on `tauri`, with features: `native-tls` but `tauri` does not have these features.


failed to select a version for `tauri` which could resolve this conflict
#

with both the things you mentioned updated

#

branch set to v1 and version 1.4 for both tauri fields

signal gulch
#

and you ran cargo update too?

#

(in the src-tauri dir)

agile rapids
#

yes

signal gulch
#

do you have another Cargo.toml file in the project root or somewhere else?

#

because i don't see why it would ask for native-tls in the cargo.toml file you shared. that feature was added in v2 but was never part of v1

signal gulch
#

what about the output of cargo tauri info and/or cargo tauri --version

signal gulch
#

what if you downgrade the cli back to v1?

#

i don't see how that's related at all but it looks like it fixed it in another thread too

agile rapids
#

will try

#

though I do need the v2 because it's also for mobile...

agile rapids
signal gulch
#

well, you have 3 visual studio installations so i think what's happening is that the one that's "active" (aka in $PATH) doesn't have the required components installed

#

though you'll still have to solve the link.exe issue when you actually want to compile the app

#

Also:

though I do need the v2 because it's also for mobile...
Do you mean in this project or in another? Because if it's about that one you may as well update the tauri and tauri-build deps which should also fix the problem hopefully