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-router/examples/minimal fail to build #1377

Closed
derust opened this issue Jul 5, 2020 · 2 comments · Fixed by #1559
Closed

yew-router/examples/minimal fail to build #1377

derust opened this issue Jul 5, 2020 · 2 comments · Fixed by #1559
Labels
A-yew-router Area: The yew-router crate bug

Comments

@derust
Copy link

derust commented Jul 5, 2020

~/yew/yew-router/examples/minimal$ cargo web start
Compiling yew v0.17.2 (/home/user/yew/yew)
error: failed to run custom build command for yew v0.17.2 (/home/user/yew/yew)

if the cargo-web have problem with yew, is there other ways to run the example?

@derust derust added bug A-yew-router Area: The yew-router crate labels Jul 5, 2020
@philip-peterson
Copy link
Contributor

Still needs a proper fix PR, but I got it to compile with:

+Cargo.toml:

[lib]
crate-type = ["cdylib", "rlib"]

Then wasm-pack build --dev --target web .

@philip-peterson
Copy link
Contributor

@derust this should be fixed in #1401, plus will be easier to run the router examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-yew-router Area: The yew-router crate bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants