---
title: "X18N4003: A decision is needed"
description: "A decision is needed. Answer the listed decisions, or pass `--yes` to accept defaults."
canonical_url: "https://x18n.dev/errors/x18n4003"
---
# X18N4003: A decision is needed

> A decision is needed. Answer the listed decisions, or pass \`--yes\` to accept defaults.

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

## Message

```
[X18N4003] A decision is needed <detail>
├▶ fix: Answer the listed decisions, or pass `--yes` to accept defaults.
╰▶ see: https://x18n.dev/errors/x18n4003
```

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

The plan has a decision (a question such as "which file gets the new key"), and the command got no answer. This happens with `--json`, or when stdin is not a terminal.

1. Run the command again with `--yes` to accept the default answer of each decision.
2. Or run it in a terminal and answer the questions.

## Exit code

The CLI exits with code `3`.

## Source

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


## Sitemap

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