Skip to content

T3002: Unknown contract field ​

Cause ​

The contract has a field Tessera does not know, usually a typo.

Example ​

xml
<contract>
{ "name": "Card", "role": "group", "parts": ["root"], "descripton": "A card" }
</contract>
<template><div class="root"></div></template>

What you see ​

text
ERROR  T3002  app/components/Card.tess:2:55
  Unknown contract field "descripton".
  Did you mean "description"?
  Run `tessera explain T3002` for details.

Fix ​

Use one of the known fields. The hint suggests the nearest.

All errors and warnings