Appearance
T3011: Declared part is not used in the template
Cause
A part is declared in the contract, but no element in the template has that class, so the contract promises something the component does not do.
Example
xml
<contract>
{ "name": "Card", "role": "group", "parts": ["root", "icon"] }
</contract>
<template><div class="root"></div></template>What you see
text
ERROR T3011 app/components/Card.tess:2:54
Part "icon" is declared in the contract, but no element in the template has class="icon".
Add class="icon" to an element, or remove "icon" from parts.
Run `tessera explain T3011` for details.Fix
Add an element with that class, or remove the part.