ITADN

Upgrading leptos.

#301Pull Requestdessalines 创建于 2025-10-12
D
dessalinescommented
I'm trying to upgrade leptos to the newest version, but I'm getting the following errors for every server fn: ```rust error: future cannot be sent between threads safely --> src/serverfns/auth/login.rs:4:1 | 4 | #[server(prefix = "/serverfn")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future created by async block is not `Send` | = help: within `{async block@src/serverfns/auth/login.rs:4:1: 4:32}`, the trait `Send` is not implemented for `Rc<RefCell<actix_session::session::SessionInner>>` note: future is not `Send` as this value is used across an await --> src/serverfns/auth/login.rs:17:40 | 9 | let (client, session) = get_client_and_session().await?; | ------- has type `actix_session::Session` which is not `Send` ... 17 | if let Some(jwt) = client.login(req).await.map_err(ServerFnError::new)?.jwt { | ^^^^^ await occurs here, with `session` maybe used later note: required by a bound in an opaque type --> src/serverfns/auth/login.rs:4:1 | 4 | #[server(prefix = "/serverfn")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the attribute macro `server` (in Nightly builds, run with -Z macro-backtrace for more info) ``` I
合并状态:未合并 5 条评论