# locals must not be reassigned.

> **LocalsReassigned**: `locals` can not be assigned directly.

## What went wrong?

[Section titled “What went wrong?”](#what-went-wrong)

Thrown when a value is being set as the `locals` field on the Astro global or context.