Skip to content

E0604: An asset declaration can't be read ​

web.Style, web.Script, web.CSS and web.JS are read from the source by the vuka command, so they take string literals, and they belong to a page: an argument of @web.Live, web.Layout, web.LiveLayout or web.New.

Wrong ​

vuka
var sheet = "app.css"

@web.Live("/", web.Style(sheet))
type Home struct{ ui.Live }
vuka
@web.Live("/", web.Style("app.css"))
type Home struct{ ui.Live }

Released under the MIT License. Vuka builds on Go and its tools, which are made by the Go Authors. Vuka is not affiliated with Google or the Go project. Go is a trademark of Google LLC.