Replies: 1 comment
-
You need to use features: dioxus = { git = "https://github.com/DioxusLabs/dioxus", features = ["router"] }
[features]
web = ["dioxus/web"]
desktop = ["dioxus/desktop"] and
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is impossible to start a web server when "web" and "desktop" are used together as features.
Dioxus.toml
main.rs
The
dx serve
command starts only "desktop". When trying to start the web server with the commanddx serve --platform web
, an error appears:or
Dioxus version: dioxus 0.6.0-alpha.3 (3f8c32d) (cli 21/10/24)
Rust version: rustc 1.82.0 (f6e511eec 2024-10-15)
OS info: Win11
App platform: web, desktop
Beta Was this translation helpful? Give feedback.
All reactions