-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yew-router example does not compile #3547
Comments
Your versions are incorrect. All the examples are tested as part of CI run on every commit. Please show your Cargo.toml file |
What does seem to work though is using:
|
You can't have mismatched versions. Either use both versions from crates.io or git. Yew from git is a different crate compared to 0.21 from crates.io and vice versa. yew-router from git depends on yew from git, so you can't have yew from crates.io there. This is nothing that yew can do anything about. This is how Rust dependencies work |
Note however, that https://yew.rs/docs/concepts/router indicates to simply add the git variant - which seems to be the wrong thing to do for most users IMO. |
Would you like to PR a change for 0.21 docs? |
This is about:
Problem
When copying https://yew.rs/docs/next/concepts/router into an editor, I get:
I use latest version of all packages.
Maybe it would be good to either always compile the example code as part of a release or be more specific with which versions that example code used to work.
The text was updated successfully, but these errors were encountered: