# HAMUR_E1244: An env reference names an entry it may not read

An env reference names an entry it may not read. Error `HAMUR_E1244` belongs to `hamur`, scan, build and dev (1001 – 1999).

## Message

```text
HAMUR_E1244 <path> reads env "<name>", which app/env.ts does not declare
```

```text
HAMUR_E1244 <path> reads env "<name>", which is private; mark it public: true in app/env.ts or move the key out of public
```

```text
HAMUR_E1244 <path> reads env "<name>", which is static; read import.meta.env.<name>
```

```text
HAMUR_E1244 <path> reads env "<name>", which is bundled into the client; read the value from runtimeConfig.public
```

## Cause

A config value is `env("NAME")` and `NAME` is not an `app/env.ts` entry, or the value is under `runtimeConfig.public` and the entry is private or static, or it is under `app`, which the client bundle holds as written.

## Fix

Declare the variable in `app/env.ts`, mark it `public: true` for a key of `runtimeConfig.public`, or read a static entry from `import.meta.env`.
