---
title: RELKIT_EVENT_FUNCTION_OPTION_INVALID
description: "Event function sets an unsupported option."
pagination: false
search:
  keywords: [RELKIT_EVENT_FUNCTION_OPTION_INVALID]
sidebar:
  icon: triangle-alert
---

{/* Generated by apps/docs/scripts/generate.ts. Do not edit. */}

**Event function sets an unsupported option.**

## What happened

An event function declares an option it cannot have. Its input always comes from the event, and it returns nothing on success.

## What to do

Remove the option named in the error from `defineEventFunction`.

Reported by `@relkit/cli`, `relkit/diagnostics`.

See [all error codes](/docs/errors).
