Skip to content

T4002: Missing template ​

Cause ​

The file has no <template> block, so there is nothing to render.

Example ​

text
<script>
const a = 1
</script>

What you see ​

text
ERROR  T4002  app/components/Card.tess:1:1
  This file has no <template> block. A component needs a template with one root element.
  Run `tessera explain T4002` for details.

Fix ​

Add a <template> with one root element.

All errors and warnings