Troubleshooting
This section provides solutions to the most common issues you might encounter while developing with Stew-Lang.
Wasm Script Not Updating
Browsers cache .wasm files aggressively for performance.
TinyGo Not Found
Stew delegates client binary generation to tinygo. Without it, interactivy won't work.
$PATH.
404 on New Pages
New pages/folders aren't automatically picked up by the compiled router until it's regenerated.
stew generate to update stew_router_gen.go.
Wasm Crash (Panic)
Seeing a Go stack trace in the console? It's likely an incompatible import in your client script.
os, net, or reflect in client scripts.
Missing Reactivity
UI not updating? Ensure you actually call .Get() in your expressions.
class) to prevent DOM corruption.
Hot Morphing Silent Failure
Page reloads instead of morphing? Check your layout dependencies.
hx-ext="morph" on <body> and Idiomorph scripts in <head>.
PageData JSON Issues
Empty stew/data? Ensure your server structs are serializable (exported fields).
Unexpected Build Failures
Errors in stew.page.go? Check reserved file prefixes.
stew.server.go or stew.middleware.go.
Still stuck? No worries.
Every edge case cannot be listed here. For any other questions, technical hurdles, or if you think you found a bug in the compiler:
The Stew team and the community are here to support your journey.