Appearance
T4009: Unknown slot
Cause
Content goes to a slot the component does not declare, or the component has no default slot.
Example
xml
<contract>
{ "name": "Card", "role": "group", "parts": ["root"] }
</contract>
<template><div class="root"><Button><span slot="nope">x</span></Button></div></template>What you see
text
ERROR T4009 app/components/Card.tess:4:49
Button has no slot "nope".
Declared slots: "default", "icon".
Run `tessera explain T4009` for details.Fix
Use a declared slot, or add the slot to the component's contract.