X18N1002: Duplicate capability id
Duplicate capability id. Rename the id, or set `override: true` on the later one.
Message
[X18N1002] Duplicate capability id <detail>
├▶ fix: Rename the id, or set `override: true` on the later one.
╰▶ see: https://x18n.antfu.dev/errors/x18n1002The 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.
What to do
Two plugins register a capability (a format, finder, scanner, check, reporter or placeholder syntax) with the same id.
- Rename the id in your own plugin.
- If the second one is meant to replace the first, set
override: trueon it.
Exit code
The CLI exits with code 2.