> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useflytrap.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting Mode

> Enabling troubleshooting mode can help identify cases where Flytrap is not behaving like it should.

## What is troubleshooting mode

Troubleshooting mode is a way of finding the root causes when Flytrap is not behaving correctly. Troubleshooting mode let's you know where the error is stemming from, which will help us fix the problem.

## Enabling troubleshooting mode

To enable troubleshooting mode, simply set the `mode` to `'troubleshoot'`.

This error occurs due to a problem with Next.js, where the build process thinks that your route is a static route.

## Fixing unexpected errors

If there are errors caught by the troubleshooting mode, that don't appear when you're developing your project without the Flytrap plugin, you should [open an issue on GitHub](https://github.com/useflytrap/flytrap-js/issues/new?assignees=skoshx\&labels=bug\&projects=\&template=---bug-report.yml)
