#How do I fix this yew error?
7 messages · Page 1 of 1 (latest)
I'm not familiar with Yew, but that is almost certainly Yew saying that it only runs under wasm, but you're trying to run it as a standalone binary on the host
https://docs.rs/yew/latest/yew/ mentions you can enable the ssr feature for server-side rendering, but I imagine that probably requires setup beyond just having a main()
Yew Framework - API Documentation
basically right now you have a program that's kinda like a piece of JavaScript that belongs in a web page; you can't just cargo run it and have to set up the environment for it instead
but I don't actually know how to use Yew so I can't tell you how to do that