You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ dx serve --example login_form --platform web --features="http"
08:45:47 [cargo] error[E0277]: the trait bound `FormValue: serde::ser::Serialize` is not satisfied
--> examples/login_form.rs:19:19
|
19 | .form(&[
| ______________----_^
| | |
| | required by a bound introduced by this call
20 | | ("username", &evt.values()["username"]),
21 | | ("password", &evt.values()["password"]),
22 | | ])
| |_____________^ the trait `serde::ser::Serialize` is not implemented for `FormValue`, which is required by `[(&str, &FormValue); 2]: serde::ser::Serialize`
|
= note: for local types consider adding `#[derive(serde::Serialize)]` to your `FormValue` type
Expected behavior
That it compile and execute as expected. Lack of working and complete examples and tutorials is really Dioxus' Achilles heel. Hard to estimate the number of devs that want to give this a try but quietly fail and give up. I know it's a huge complex project but I can't overemphasize how frustrating such things are. This is your calling card, your storefront, the place that's supposed to be welcoming to new adopters. So it can't ever be an afterthought, it has to be at the forefront. End of unsolicited advice... 🤣
Environment:
Dioxus version: 0.6.3
Rust version: rustc 1.83.0
OS info: MacOS 15.2
App platform: desktop
Questionnaire
I'm interested in fixing this myself but don't know where to start.
The text was updated successfully, but these errors were encountered:
Problem
The example
login_form
fails to compile.Steps to reproduce the behavior:
Expected behavior
That it compile and execute as expected. Lack of working and complete examples and tutorials is really Dioxus' Achilles heel. Hard to estimate the number of devs that want to give this a try but quietly fail and give up. I know it's a huge complex project but I can't overemphasize how frustrating such things are. This is your calling card, your storefront, the place that's supposed to be welcoming to new adopters. So it can't ever be an afterthought, it has to be at the forefront. End of unsolicited advice... 🤣
Environment:
Questionnaire
I'm interested in fixing this myself but don't know where to start.
The text was updated successfully, but these errors were encountered: