Closed johansmitsnl closed 3 years ago
I suffered from this problem too. And fix it by specifying the yew* dependencies of your project and yewdux have the same version.
@deftsp could you share you Cargo.toml snippet to see how you did this?
The yew project
[dependencies]
log = "0.4.14"
yew = { git = "https://github.com/yewstack/yew", rev = "246bc59" }
yew-functional = { git = "https://github.com/yewstack/yew", rev = "246bc59" }
yew-router = { git = "https://github.com/yewstack/yew", rev = "246bc59" }
yew-services = { git = "https://github.com/yewstack/yew", rev = "246bc59" }
yewtil = { git = "https://github.com/yewstack/yew", rev = "246bc59"}
yewdux = { git = "https://github.com/deftsp/yewdux", rev = "dbda686"}
The yewdux fork of the following change file: ./yewdux/yewdux/Cargo.toml
[dependencies]
serde = { version = "1.0.114", features = ["rc"] }
yew = { git = "https://github.com/yewstack/yew", rev = "246bc59" }
yew-services = { git = "https://github.com/yewstack/yew", rev = "246bc59" }
yewtil = { git = "https://github.com/yewstack/yew", rev = "246bc59", optional = true }
Remember to execute "cargo update" to update the git rev
@deftsp I believe it works but pinning to specific version is not a long term solution. It looks like yewdux release is not correct.
Dependencies are up to date now!
I'm refactoring my yew app which is in a small state.
I have upgraded from
yew = "0.17"
->yew = "0.18"
(YEW) andyew-state = "0.4"
->yewdux = "0.6.1"
.My relevant depends are:
I have used the example as my guideline but I'm getting this error:
What is wrong with the code or is yewdux not yew
0.17
or0.18
ready?