Skip to content

T4006: Unknown identifier in template ​

Cause ​

The template uses a name that is not declared in <script> and is not a loop variable.

Example ​

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

What you see ​

text
ERROR  T4006  app/components/Card.tess:4:30
  Unknown name "nope" in the template. It is not declared in <script> and is not a loop variable.
  Run `tessera explain T4006` for details.

Fix ​

Declare it in <script>, or fix the typo (the hint suggests the nearest name).

All errors and warnings