# The patterns are too complex

What "the patterns are too complex" means and how to fix it.

```text
error: the patterns in pnpm-workspace.yaml are too complex to match together: error building NFA
hint: Use fewer or simpler patterns, for example one ** pattern instead of many similar ones, then run axle again.
```

## Why it happens

The workspace patterns are combined into one matcher, and there are so many, or they are so long, that the matcher would be too large.

## How to fix it

Replace groups of similar patterns with one broader pattern, such as `packages/**` instead of a pattern for every folder.
