# A filter isn't valid

What "a filter isn't valid" means and how to fix it.

```text
error: the filter "{./apps/*" isn't valid: a { is never closed
hint: Use a package name such as web, a folder such as ./apps/*, or a Git range such as [main], with ... to add dependencies or dependents.
```

```text
error: the filter "[main...]" isn't valid: a Git range needs a branch, tag or commit on each side, such as [main] or [main...v2]
```

```text
error: the filter "tag:" isn't valid: tag: needs the name of a tag, such as tag:frontend
```

## Why it happens

The text after `--filter` can't be read as a selector.

## How to fix it

Fix the filter; see [choosing packages](https://axlers.dev/docs/reference/run.md#choosing-packages). A Git range goes in square brackets at the end, such as `[main]`, `[main...v2]` or `./apps/*[main]`.
