Skip to content

T2108: Invalid raw() escape ​

Cause ​

A raw() escape is malformed: it needs a value and a quoted reason, and an optional quoted YYYY-MM-DD expiry.

Example ​

xml
<contract>
{ "name": "Card", "role": "group", "parts": ["root"] }
</contract>
<template><div class="root"></div></template>
<style>
.root { padding: raw(13px); }
</style>

What you see ​

text
ERROR  T2108  app/components/Card.tess:6:18
  raw(13px) needs a reason, like raw(13px, "why it is needed").
  Run `tessera explain T2108` for details.

Fix ​

Write raw(13px, "why it is needed", "2027-03-01").

text
.root {
  padding: raw(13px, "legacy modal spacing", "2027-03-01");
}

All errors and warnings