saschagrunert / webapp.rs

A web application completely written in Rust. 🌍

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile failed!

irocn opened this issue · comments

Environment:

  1. ubuntu 20.04
  2. cargo 1.62.0 (a748cf5a3 2022-06-08)
  3. version @master branch
error[E0433]: failed to resolve: could not find `agent` in `yew_router`
  --> frontend/src/component/content.rs:20:17
   |
20 | use yew_router::agent::{RouteAgent, RouteRequest::ChangeRoute};
   |                 ^^^^^ could not find `agent` in `yew_router`

error[E0432]: unresolved import `yew_router::agent`
  --> frontend/src/component/content.rs:20:17
   |
20 | use yew_router::agent::{RouteAgent, RouteRequest::ChangeRoute};
   |                 ^^^^^ could not find `agent` in `yew_router`

error[E0433]: failed to resolve: could not find `agent` in `yew_router`
  --> frontend/src/component/login.rs:22:17
   |
22 | use yew_router::agent::{RouteAgent, RouteRequest::ChangeRoute};
   |                 ^^^^^ could not find `agent` in `yew_router`

error[E0432]: unresolved import `yew_router::agent`
  --> frontend/src/component/login.rs:22:17
   |
22 | use yew_router::agent::{RouteAgent, RouteRequest::ChangeRoute};
   |                 ^^^^^ could not find `agent` in `yew_router`

error[E0433]: failed to resolve: could not find `agent` in `yew_router`

yew-router = "0.16.0" don't find 'agent'

The problem is yew-router 0.16 has been completely rewritten. 0.15 still has agent. So this will not build as is!

Yeah I did not invest much time in keeping this project up to date. But in any case PRs are very welcome :)