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

Compile failed! #1896

Open
irocn opened this issue Jul 18, 2022 · 3 comments
Open

Compile failed! #1896

irocn opened this issue Jul 18, 2022 · 3 comments

Comments

@irocn
Copy link

irocn commented Jul 18, 2022

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`
@irocn
Copy link
Author

irocn commented Jul 18, 2022

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

@greenpdx
Copy link

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

@saschagrunert
Copy link
Owner

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

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

3 participants