#How do I fix this yew error?

7 messages · Page 1 of 1 (latest)

haughty cave
#

I'm using replit and I wonder if this problem caused by replit?

pseudo mason
#

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()

#

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

noble spindle
#

Use trunk to serve it

#

cargo install trunk