Appearance
T3003: Invalid contract field
Cause
A contract field has the wrong shape or an invalid value (a string where an array is needed, a bad name).
Example
xml
<contract>
{ "name": "Card", "role": "group", "parts": ["root"], "variants": { "tone": "primary" } }
</contract>
<template><div class="root"></div></template>What you see
text
ERROR T3003 app/components/Card.tess:2:77
Variant "tone" must be an array of allowed values.
Run `tessera explain T3003` for details.Fix
Fix the field the message names.