Open
Description
Describe the bug
I don't know why the error was reported
Reproduction
Partial code:
VUE:
import { open } from '@tauri-apps/plugin-shell';
(.....)
const openBrowser_contract_2 = async () => {
await open('https://www.google.com/');
}
src-tauri\capabilities\default.json:
{
(......)
"tauri": {
"allowlist": {
"shell": {
"all": true,
"open": true,
"execute": true,
"sidecar": true,
"scope": [
{"url":"https://**"},
},
"fs": {
(......)
]
}
}
},
"permissions": [
"core:default",
"shell:allow-open",
"shell:allow-execute",
"shell:allow-kill",
"shell:allow-spawn",
"shell:allow-stdin-write",
"shell:default"
]
}
src-tauri\tauri.conf.json:
{
(......)
"app": {
"windows": [(......)]
},
"plugins": {
"shell": {
"open": true
}
}
}
}
An exception occurred after running await open('https://www.google.com/');
-> plugin shell not found
The installation commands I have run:
npm install @tauri-apps/plugin-shell
cargo add tauri-plugin-shell
Expected behavior
No response
Full tauri info
output
PS D:\User\Documents\T> npm run tauri info
> [email protected] tauri
> tauri info
[✔] Environment
- OS: Windows 10.0.20348 x86_64 (X64)
✔ WebView2: 135.0.3179.98
✔ MSVC: Visual Studio Community 2022
✔ rustc: 1.85.1 (4eb161250 2025-03-15)
✔ cargo: 1.85.1 (d73d2caf9 2024-12-31)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 22.14.0
- yarn: 1.22.22
- npm: 11.0.0
[-] Packages
- tauri 🦀: 2.4.1, (outdated, latest: 2.5.1)
- tauri-build 🦀: 2.1.1, (outdated, latest: 2.2.0)
- wry 🦀: 0.50.5, (outdated, latest: 0.51.2)
- tao 🦀: 0.32.8, (outdated, latest: 0.33.0)
- @tauri-apps/api : 2.5.0
- @tauri-apps/cli : 2.5.0
[-] Plugins
- tauri-plugin-os 🦀: 2.2.1
- @tauri-apps/plugin-os : 2.2.1
- tauri-plugin-opener 🦀: 2.2.6
- @tauri-apps/plugin-opener : 2.2.6
- tauri-plugin-shell 🦀: 2.2.1
- @tauri-apps/plugin-shell : 2.2.1
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: Vue.js
- bundler: Vite
Stack trace
Additional context
No response