Skip to content
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

Upgrade Yew to 0.21 #32

Merged
merged 3 commits into from
Oct 3, 2023
Merged

Upgrade Yew to 0.21 #32

merged 3 commits into from
Oct 3, 2023

Conversation

isosphere
Copy link
Owner

@isosphere isosphere commented Sep 29, 2023

#31

You must run cargo update.

@isosphere isosphere linked an issue Sep 29, 2023 that may be closed by this pull request
@isosphere isosphere added this to the 2023Q4R1 milestone Sep 29, 2023
@dricair
Copy link
Contributor

dricair commented Oct 1, 2023

I tried your branch but I have an error I cannot explain for now, when launching trunk serve from the example/basics directory.

   Compiling yew v0.21.0
error[E0277]: the trait bound `implicit_clone::unsync::IMap<_, _>: From<indexmap::IndexMap<K, V>>` is not satisfied
   --> /home/username/.cargo/registry/src/index.crates.io-6f17d22bba15001f/yew-0.21.0/src/html/conversion/into_prop_value.rs:216:20
    |
216 |         IMap::from(self)
    |         ---------- ^^^^ the trait `From<indexmap::IndexMap<K, V>>` is not implemented for `implicit_clone::unsync::IMap<_, _>`
    |         |
    |         required by a bound introduced by this call
    |
    = help: the following other types implement trait `From<T>`:
              <implicit_clone::unsync::IMap<K, V> as From<indexmap::map::IndexMap<K, V>>>
              <implicit_clone::unsync::IMap<K, V> as From<std::rc::Rc<indexmap::map::IndexMap<K, V>>>>
              <implicit_clone::unsync::IMap<K, V> as From<&'static [(K, V)]>>

For more information about this error, try `rustc --explain E0277`.
error: could not compile `yew` (lib) due to previous error
2023-10-01T16:23:43.328224Z ERROR ❌ error
error from HTML pipeline

I am using Rust 1.72.1

What is strange is that I do not have this error if I create a new yew project and launch it, so it might be due to some dependency, but I don't know how to find it.

@isosphere
Copy link
Owner Author

I am using Rust 1.72.1

What is strange is that I do not have this error if I create a new yew project and launch it, so it might be due to some dependency, but I don't know how to find it.

Did you see my comment above? 😉

You must run cargo update.

@dricair
Copy link
Contributor

dricair commented Oct 1, 2023

I did, but I executed cargo clean, I thought it would do the job. I agree that cargo update does the job !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Yew 0.21
2 participants