X18N1003: Unknown preset

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

Message

[X18N1003] Unknown preset <detail>
├▶ fix: Use a preset name listed in the docs, or a preset object.
╰▶ see: https://x18n.antfu.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.

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.
  2. Or pass a preset object from a TS config, for example presets: [vueI18n()].

Exit code

The CLI exits with code 2.

Source