Skip to content

ogygia error

function_prop_cannot_cross

‹where› is a function that can't cross the island boundary — ‹reason›. Island props must be SERIALIZABLE; a function crosses only as a Svelte snippet that freezes to HTML, and this one didn't. Usually one of:
• it's a PLAIN function (an event handler / callback) — those can't cross into an island; pass serializable data as props and keep the behavior inside the island component;
• it's a snippet WITH PARAMETERS — declare it as a {#snippet} so it crosses LIVE, or pass its data as props;
• it's children containing a NESTED island — keep those out of frozen children for now.

An island's props must be serializable. A function only crosses as a snippet that freezes to HTML, and this one could not.

A plain function (an event handler, a callback) never crosses: keep the behavior inside the island and pass data. A snippet with parameters crosses live when it is declared as a snippet. Children that contain another island cannot be frozen yet.

Every error and warning