Skip to content

ogygia error

macro_wire_misuse

‹file›:‹line› — ‹problem›. import.meta.og.wire is legal in exactly one position: `static wire = import.meta.og.wire({ encode, decode })` inside a class body. The macro consumes that member and mints the symbol key; the construct is not a value.

import.meta.og.wire makes a class transportable across an island boundary. The build replaces the member that holds it, so it only works in one place: a static member of a class, static wire = import.meta.og.wire(codec), where the codec has encode and decode.

problem names what was written instead. Move the call into that member.

Every error and warning