Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Implementation has faults #34

Open
stevietelly opened this issue Dec 3, 2024 · 0 comments
Open

React Implementation has faults #34

stevietelly opened this issue Dec 3, 2024 · 0 comments

Comments

@stevietelly
Copy link

Raises error[E0433]: failed to resolve: use of undeclared crate or module tauri_plugin_window

So I only recently started working with tauri and came across tauri-controls whebn I wanted to Implement a custom Title bar, but for some reason the react installation instructions seem to raise an error, see below


error[E0433]: failed to resolve: use of undeclared crate or module `tauri_plugin_window`
 --> src/main.rs:8:17
  |
8 |         .plugin(tauri_plugin_window::init())
  |                 ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `tauri_plugin_window`
  |
help: there is a crate or module with a similar name
  |
8 |         .plugin(tauri_plugin_os::init())
  |                 ~~~~~~~~~~~~~~~

For more information about this error, try `rustc --explain E0433`.
warning: `testing-tauri-controls` (bin "testing-tauri-controls") generated 1 warning
error: could not compile `testing-tauri-controls` (bin "testing-tauri-controls") due to 1 previous error; 1 warning emitted

Here are my machine details


[✔] Environment
    - OS: Windows 10.0.26100 x86_64 (X64)
    ✔ WebView2: 131.0.2903.70
    ✔ MSVC: Visual Studio Build Tools 2022
    ✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
    ✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.12.2
    - pnpm: 9.0.6
    - yarn: 1.22.22
    - npm: 10.5.0
    - bun: 1.1.4
    - deno: deno 2.0.0-rc.10

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.2
    - tao 🦀: 0.30.8
    - @tauri-apps/api : 2.1.1
    - @tauri-apps/cli : 2.1.0

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.0.1
    - tauri-plugin-os 🦀: 2.0.1
    - @tauri-apps/plugin-os : 2.0.0

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

I use yarn for installation and bun for running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant