---
title: "X18N1002: Duplicate capability id"
description: "Duplicate capability id. Rename the id, or set `override: true` on the later one."
canonical_url: "https://x18n.dev/errors/x18n1002"
---
# X18N1002: Duplicate capability id

> Duplicate capability id. Rename the id, or set \`override: true\` on the later one.

<!-- Generated by docs/scripts/generate.ts from the source code. Do not edit. -->

## Message

```
[X18N1002] Duplicate capability id <detail>
├▶ fix: Rename the id, or set `override: true` on the later one.
╰▶ see: https://x18n.dev/errors/x18n1002
```

The CLI prints the code and why the error happened, with details such as a file name or a field. The fix and a link to this page follow. With `--json`, the same parts are in `errors` of the [envelope](https://x18n.dev/references/json-contracts).

## What to do

Two plugins register a capability (a format, finder, scanner, check, reporter or placeholder syntax) with the same id.

1. Rename the id in your own plugin.
2. If the second one is meant to replace the first, set `override: true` on it.

## Exit code

The CLI exits with code `2`.

## Source

- [`packages/core/src/plugins.ts`](https://github.com/x18n-dev/x18n/blob/main/packages/core/src/plugins.ts)


## Sitemap

See the full [sitemap](https://x18n.dev/sitemap.md) for all pages.
