# TS5061: Pattern '…' can have at most one '*' character.

> A key in the paths option has more than one * wildcard. Use at most one * per pattern.

## What it means

In `compilerOptions.paths`, each key is a module-name pattern that may contain one `*`. A key with
two or more is invalid.

## Example

```json
{ "compilerOptions": { "paths": { "@app/*/*": ["./src/*"] } } }
```

```ts
export const x = 1;
```

## How to fix

- Rewrite the pattern with a single `*`, for example `"@app/*": ["src/*"]`.

Source: https://ts-r.dev/errors/TS5061/
