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

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

Open
clacladev opened this issue Jul 17, 2024 · 1 comment
Open

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

clacladev opened this issue Jul 17, 2024 · 1 comment

Comments

@clacladev
Copy link

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
Copy link

djmaze commented Aug 26, 2024

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

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

2 participants