Skip to content

E0102: JSX needs a target ​

JSX renders through a target package: the one that declares VukaJSX, usually github.com/vuka-lang/ui/v2. The file has JSX and imports no target, or the target it imports doesn't load.

Wrong ​

vuka
package pages

func Hello() ui.Node {
	return <p>Hello</p>
}
vuka
package pages

import "github.com/vuka-lang/ui/v2"

func Hello() ui.Node {
	return <p>Hello</p>
}

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.