Skip to content

E0108: No such ref or attribute value ​

A JS command names an element by ref (ui.Ref("menu")), or an attribute value (ui.GetAttr("type", "email")), that the component's markup doesn't have. The message lists what there is, or suggests the nearest name.

Wrong ​

vuka
func Menu() ui.Node {
	return <nav>
		<ul ref="menu">…</ul>
		<button onClick={ui.JS.Toggle(ui.Ref("mnu"))}>Menu</button>
	</nav>
}
vuka
func Menu() ui.Node {
	return <nav>
		<ul ref="menu">…</ul>
		<button onClick={ui.JS.Toggle(ui.Ref("menu"))}>Menu</button>
	</nav>
}

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.