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

Yew 0.20 #47

Closed
Timmmm opened this issue Jan 14, 2023 · 3 comments
Closed

Yew 0.20 #47

Timmmm opened this issue Jan 14, 2023 · 3 comments

Comments

@Timmmm
Copy link

Timmmm commented Jan 14, 2023

I might be doing something wrong but I tried one of the examples with Yew 0.20 and get this error:

error[E0277]: the trait bound `Series<i64, f32>: yew::Component` is not satisfied
  --> src\chart.rs:52:14
   |
52 |             <Series<i64, f32>
   |              ^^^^^^ the trait `yew::Component` is not implemented for `Series<i64, f32>`
   |
   = help: the trait `yew::Component` is implemented for `ContextProvider<T>`
   = note: required for `Series<i64, f32>` to implement `yew::BaseComponent`
   = note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info)

Any idea what has changed?

@Timmmm
Copy link
Author

Timmmm commented Jan 14, 2023

Ah never mind I guess it's because Yew 0.20 is a breaking change. Yew-chart explicitly depends on 0.19.

Anyway if I change it to depend on 0.20 and fix a couple of changed methods as described here then it seems to work!

@huntc
Copy link
Contributor

huntc commented Jan 15, 2023

Thanks for the issue! I’ve not got round to updating to 0.20 for some of our production stuff. Probably should re-evaluate that, or at least keep a 0.19 branch going.

@huntc
Copy link
Contributor

huntc commented Nov 19, 2023

Going to close this out as we have #49

@huntc huntc closed this as completed Nov 19, 2023
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

No branches or pull requests

2 participants