---
title: "X18N1003: Unknown preset"
description: "Unknown preset. Use a preset name listed in the docs, or a preset object."
canonical_url: "https://x18n.dev/errors/x18n1003"
---
# X18N1003: Unknown preset

> Unknown preset. Use a preset name listed in the docs, or a preset object.

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

## Message

```
[X18N1003] Unknown preset <detail>
├▶ fix: Use a preset name listed in the docs, or a preset object.
╰▶ see: https://x18n.dev/errors/x18n1003
```

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

A string in `presets` is not the name of a built-in preset, and x18n has no plugin loader in this runtime.

1. Use a name from the [presets list](https://x18n.dev/presets).
2. Or pass a preset object from a TS config, for example `presets: [vueI18n()]`.

## Exit code

The CLI exits with code `2`.

## Source

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


## Sitemap

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