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
Please copy and paste the Leptos dependencies and features from your Cargo.toml.
For example:
[dependencies]
leptos = { version = "0.7.0", features = ["nightly"] }
leptos_router = { version = "0.7.0", features = ["nightly"] }
axum = { version = "0.7", optional = true }
console_error_panic_hook = { version = "0.1", optional = true}
leptos_axum = { version = "0.7.0", optional = true }
leptos_meta = { version = "0.7.0" }
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
wasm-bindgen = { version = "=0.2.100", optional = true }
To Reproduce
Steps to reproduce the behavior:
Try to run cargo leptos watch in start-axumnightly
See error
error[E0599]: no method named `file` found for struct `memo::proc_macro::Span` in the current scope
--> .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/leptos_macro-0.7.9/src/lib.rs:360:22
|
360 | site.file(),
| ^^^^ method not found in `Span`
For more information about this error, try `rustc --explain E0599`.
Next Steps
[ ] I will make a PR
[x] I would like to make a PR, but need help getting started
[ ] I want someone else to take the time to fix this
[ ] This is a low priority for me and is just shared for your information
Additional context
Do not know if it is a right solution but changing to site.source_file().path(), was the solution for me
What is your rustc --version? When I try it with a relatively recent nightly it works. There was a chance in this API a few weeks ago and source_file() no longer exists in current nightly.
Mine is rustc 1.88.0-nightly (10fa3c449 2025-04-26)
Try rustup update nightly and see if it fixes the issue for you.
Describe the bug
axum-start
nightly do not startLeptos Dependencies
Please copy and paste the Leptos dependencies and features from your
Cargo.toml
.For example:
To Reproduce
Steps to reproduce the behavior:
cargo leptos watch
instart-axum
nightly
Next Steps
[ ] I will make a PR
[x] I would like to make a PR, but need help getting started
[ ] I want someone else to take the time to fix this
[ ] This is a low priority for me and is just shared for your information
Additional context
Do not know if it is a right solution but changing to
site.source_file().path(),
was the solution for meleptos/leptos_macro/src/lib.rs
Line 364 in e37711c
The text was updated successfully, but these errors were encountered: