Skip to content

E0307: Not an island component ​

The body of <ui.Island> must be an island component: a struct type marked @ui.Island, or a component file imported by name.

Wrong ​

vuka
func Chart(series []float64) ui.Node { … }

<ui.Island><Chart series={p.sales} /></ui.Island>
vuka
@ui.Island
type Chart struct {
	Series []float64 `json:"series"`
}

<ui.Island><Chart series={p.sales} /></ui.Island>

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.