-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Problem
Hi guys,
was playing with Dioxus desktop + fullstack project, and dived into bundling on Windows 11 to check how the final app looks.
I've created default Dioxus bare-bones app with fullstack and tailwind support included:
This guideline says that if you have chosen the fullstack option, everything described in the guide should be already set up. But that's not true - I still have to adjust features section in Cargo.toml because they look like this:
[features]
default = ["desktop"] # <-- Should be empty.
web = ["dioxus/web"]
desktop = ["dioxus/desktop"]
mobile = ["dioxus/mobile"]
# <-- server section should be here.No problem, fixed by the guideline:
[features]
default = []
web = ["dioxus/web"]
desktop = ["dioxus/desktop"]
mobile = ["dioxus/mobile"]
server = ["dioxus/server"]Also fixed missing [bundle] section by providing identifier and publisher, but don't think it is matter. May be it would be nice to have these properties pre-filled by dx.
Also, went into windows icon problem that lead me to googling the issue:
ERROR Failed to bundle project: PathUtilError(
"Path \"D:\\Projects\\karma3\\karma3\\icons/icon.ico\" does not exist or you don't have access",
)
9.509s ERROR err=BundleFailed(PathUtilError("Path \"D:\\Projects\\karma3\\karma3\\icons/icon.ico\" does not exist or you don't have access"))
Okay, just added icons/icon.ico, because it seems there is no way to change this path (or I missing something).
I really love how Dioxus is architected, but catching 3+ errors during bundling default application is a bit disappointing.
Bundled app with dx bundle --platform desktop. As a result, I've got the bundle, installed it via .msi intaller to C:\Program Files\....
On launch app crashes with:
thread 'main' panicked at C:\Users\***\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\dioxus-desktop-0.6.3\src\webview.rs:400:39:
called `Result::unwrap()` on an `Err` value: WebView2Error(WindowsError(Error { code: HRESULT(0x80070005), message: "Access is denied." }))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Okay, something is not right with access level. Then I ran it as administrator with elevated privileges. Got this:
And new folder karma.exe.WebView2 appeared in the app directory.
Okay, went to the recently created karma.exe.WebView2 folder properties and checked modify + write checkboxes in Users group.
After this last step application launches correctly.
Steps To Reproduce
Steps to reproduce the behavior:
- Create base-bones dx project with router, fullstack, tailwind enabled;
- Adjust
Cargo.tomlto support fullstack as described above; - Bundle app with
dx bundle --platform desktop; - Install bundled app with
.msipackage; - Open app.
Expected behavior
Application should run normally.
Environment:
- Dioxus version: dioxus 0.6.3 (fc1f1c2)
- Rust version: rustc 1.88.0 (6b00bc388 2025-06-23)
- OS info: Windows 11
- App platform: Desktop
Questionnaire
It was my first experience with Dioxus, so may be I've missed something during setup of the project.


