yewstack / yew-trunk-minimal-template

Template for starting a Yew project using Trunk
Apache License 2.0
89 stars 33 forks source link

tool version mismatch (required: 0.2.87, system: 0.2.92) #17

Open clacladev opened 2 months ago

clacladev commented 2 months ago

I tryed to create a new app using the template suggested in the docs

cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template

but when I trunk serve this is what I get

...
Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.55s
warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.87
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
2024-07-17T20:30:19.302818Z  INFO tool version mismatch (required: 0.2.87, system: 0.2.92)
2024-07-17T20:30:19.387235Z ERROR ❌ error
error from build pipeline

Caused by:
    0: HTML build pipeline failed (1 errors), showing first
    1: failed to finalize asset pipeline
    2: Document has neither a <link data-trunk rel="rust"/> nor a <body>. Either one must be present.
2024-07-17T20:30:19.387298Z  INFO πŸ“‘ serving static assets at -> /
2024-07-17T20:30:19.387339Z  INFO πŸ“‘ server listening at:
2024-07-17T20:30:19.387341Z  INFO     🏠 http://127.0.0.1:8080/
2024-07-17T20:30:19.387343Z  INFO     🏠 http://[::1]:8080/

Then app does not run correctly. If I open the address I get This 127.0.0.1 page can’t be found.

djmaze commented 3 weeks ago

Same here. Needed to manually add <link data-trunk rel="rust"/> to index.html in order to solve this.