---
title: "X18N4001: Resource is read-only"
description: "Resource is read-only. Edit the source of computed values, or use a writable format."
canonical_url: "https://x18n.dev/errors/x18n4001"
---
# X18N4001: Resource is read-only

> Resource is read-only. Edit the source of computed values, or use a writable format.

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

## Message

```
[X18N4001] Resource is read-only <detail>
├▶ fix: Edit the source of computed values, or use a writable format.
╰▶ see: https://x18n.dev/errors/x18n4001
```

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 edit targets a read-only resource. Resources with `execute: true` are read-only, because x18n cannot write the code that computes them.

1. Edit the source of the computed values by hand.
2. Or move the messages to a JSON or YAML file.

## Exit code

The CLI exits with code `1`.

## Source

- [`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.
