Skip to content
ZOLO / TE719 Type · error

handler in an `@island` cannot be compiled to JavaScript

Compiler diagnostic TE719: handler in an `@island` cannot be compiled to JavaScript.

Why this fires

TE719 means an event handler inside an @island contains an expression the Verniz client lowering cannot represent as JavaScript. Server rendering can still produce the button or input, but publishing it without its handler would create an interactive-looking control that does nothing, so the build fails.

The diagnostic message includes the handler attribute and the precise lowering failure. Use that detail to find the unsupported call, value, control-flow form, or server-only capability.

Fix it

  • Keep the handler's captured values and operations browser-safe.
  • Move server work behind an @action and call that action from the handler.
  • Move non-interactive work outside the island when it does not need to run in the browser.
  • Split a complex handler into a small client-compatible handler and an explicitly server-owned function.

Do not replace the handler with an empty closure merely to make the build pass; TE719 exists to prevent that same silent loss of behavior.

See also

  • TE721 — an island effect cannot be compiled to JavaScript.
  • TE764 — a secret or private value is reachable from client code.

Global index

Find your way through Zolo

Try an idea

Start here

9 results

9 results

en