Skip to content
ZOLO / TE746 Type · error

DOM ref target is not a compatible optional source cell

Compiler diagnostic TE746: DOM ref target is not a compatible optional source cell.

Why this fires

TE746 reports a ref target that cannot receive a browser element. A ref must be an optional DOM handle stored in an @island source cell.

@island
fn Search() -> View {
    var<signal> field: DomRef = nil
    <input ref={field} aria-label="Search" />
}

Fix it

Declare or retype the target as var<signal> name: DomRef = nil inside the owning island. SSR keeps it nil; attach fills it and detach clears it again.

Global index

Find your way through Zolo

Try an idea

Start here

9 results

9 results

en