Closed carlca closed 4 months ago
Problem solved π I had previously installed Rust 1.75.0 via home brew and then forgotten about it.
More recently I had installed Rust 1.76.0 via the official curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh
command, but it effectively meant I had two copies of cargo floating around.
It hadn't caused my dealings with Rust any undue effects, to my knowledge at least, except where WASM was concerned.
I ran brew uninstall rust
and rustup self uninstall
followed by curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh
again, then rustup target add wasm32-unknown-unknown
and cargo install trunk
. Everything works now π
Problem I am unable to build even the simplest Yew applications using Rust 1.76 and running under macOS 14.3
Steps To Reproduce Run
cargo install trunk
. Runrustup target add wasm32-unknown-unknown
Goto any Yew app folder and runtrunk serve
.I have tried the YT video at https://discord.com/channels/701068342760570933/1213256829195522148/1213256829195522148 as well as Yew's own sample app, described on https://discord.com/channels/701068342760570933/1213256829195522148/1213256829195522148 Moreover, I have
git clone
d the entire Yew repo and cannot build and run any of the example apps>Expected behavior I expect to be able to open my browser to
1287.0.0.1:8080
and run any of the apps.Screenshots This is an example of the errors which occur...
Note that despite
trunk
telling me thatserver listening at http://127.0.0.1:8080
, when I open the address in Arc, I get a 404. I also have the same results in Safari and Firefox.Environment:
wasm32-unknown-unknown
trunk serve
Questionnaire