Appearance
T3009: Behavior requirement not met
Cause
A behavior needs the contract to declare certain states or events (the press behavior needs a press event), and they are missing.
Example
xml
<contract>
{ "name": "Card", "role": "button", "parts": ["root"], "behavior": "press" }
</contract>
<template><div class="root"></div></template>What you see
text
ERROR T3009 app/components/Card.tess:2:68
Behavior "press" requires the event "press", which is not in events.
Add "press" to events.
Run `tessera explain T3009` for details.Fix
Add what the message names to the contract.