---
title: RELKIT_MISSING_MIDDLEWARE
description: "Middleware is not defined."
pagination: false
search:
  keywords: [RELKIT_MISSING_MIDDLEWARE]
sidebar:
  icon: triangle-alert
---

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

**Middleware is not defined.**

## What happened

A route refers to a middleware that is not defined in your app.

## What to do

Define the middleware with `defineMiddleware`, or fix the reference so it points at one that exists.

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

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