tauri-apps / tauri-apps/plugins-workspace

[docs] There are serious mistakes and missing parts

Open
#2,677 9 comments 0 reactions 0 assignees View on GitHub
plugin: shell type: documentation
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

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

```text
PS D:\User\Documents\T> npm run tauri info

> t@0.1.0 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

```text

```

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.