X18N1004: Invalid YAML plugin
Invalid YAML plugin. Validate the file against `schema/plugin.json`.
Message
[X18N1004] Invalid YAML plugin <detail>
├▶ fix: Validate the file against `schema/plugin.json`.
╰▶ see: https://x18n.antfu.dev/errors/x18n1004The 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 YAML plugin file does not match the plugin schema. The message names the file, the field and the problem.
- Add
# yaml-language-server: $schema=https://x18n.antfu.dev/schema/plugin.jsonas the first line of the file. Your editor then shows the errors. - Fix each field that the message lists. See YAML plugins.
Exit code
The CLI exits with code 2.