# AUR0220

## Error Message

`AUR0220: Map/Set "size" is a readonly property`

## Description

This error occurs when a binding or assignment tries to write to the `size` property of a `Map` or `Set`. `size` is readonly in JavaScript and cannot be assigned to.

## Example Trigger

```html
<!-- ❌ size is readonly -->
<template>
  <input value.bind="mySet.size">
</template>
```

## Solution

* Bind to `size` as a read-only value (one-way/from-view), or expose a derived property.
* Mutate the `Map`/`Set` via its methods (`add`, `delete`, `clear`) rather than assigning to `size`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aurelia.io/developer-guides/error-messages/0203-to-0227/aur0220.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
