Skip to content

T1008: Token reference has the wrong type ​

Cause ​

An alias points at a token of a different type than the token that uses it.

Example ​

text
// base.tokens.json
{
  "n": {
    "$type": "number",
    "$value": 1
  },
  "c": {
    "$type": "color",
    "$value": "{n}"
  }
}

What you see ​

text
ERROR  T1008  base.tokens.json  c
  "{n}" has type "number", but "c" needs "color".
  Run `tessera explain T1008` for details.

Fix ​

Alias a token of the same type, or give the aliasing token the type it really has.

All errors and warnings