Skip to content

Run any shell commands using OS shell in Tauri App Env #3600

Answered by Kumassy
jahanzeb10 asked this question in Q&A
Discussion options

You must be logged in to vote

I ran into the same error.

Please make sure you are using the latest tauri version.
Shell scope functions seems relative new feature, which was implemented in 10314cd

Updating

  • from "@tauri-apps/api": "^1.0.0-beta.8" to "@tauri-apps/api": "^1.0.0-rc.2
  • from "@tauri-apps/cli": "^1.0.0-beta.10" to "@tauri-apps/cli": "^1.0.0-rc.7"
  • from tauri-build = { version = "1.0.0-beta.4" } to tauri-build = { version = "1.0.0-rc.4" }
  • from tauri = { version = "1.0.0-beta.8", features = ["api-all"] } to tauri = { version = "1.0.0-rc.4", features = ["api-all"] }

in package.json and src-tauri/Cargo.toml solved the issue in my case.

This example demonstrates how to use Command API in JavaScript and how to con…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FabianLars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants