jetli / create-yew-app

Set up a modern Yew web app by running one command.
https://jetli.github.io/create-yew-app/
Apache License 2.0
164 stars 13 forks source link

Upgrade to yew 0.11 and yew_router 0.8 #1

Closed jetli closed 4 years ago

jetli commented 4 years ago

Upgrade yew and yew_router, but still having build errors:

/Users/jetli/repos/3rdparty/create-yew-app/crates/yew-app/Cargo.toml: Command failed: wasm-pack build --dev
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
   Compiling stdweb v0.4.20
error[E0463]: can't find crate for `stdweb_internal_macros`
   --> /Users/jetli/.cargo/registry/src/github.com-1ecc6299db9ec823/stdweb-0.4.20/src/lib.rs:142:1
    |
142 | extern crate stdweb_internal_macros;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = note: extern location for stdweb_internal_macros is of an unknown type: /Users/jetli/repos/3rdparty/create-yew-app/target/debug/deps/libstdweb_internal_macros-514a12fe27aecec8.dylib
    = help: file name should be lib*.rlib or *..wasm

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: could not compile `stdweb`.

To learn more, run the command again with --verbose.
Error: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit code: 101
jetli commented 4 years ago

I use cargo clean to clean up and rebuild, it's working now.