Skip to content

T3014: Invalid rename or deprecation of a variant value ​

Cause ​

"deprecatedValues" and "renamedValues" describe the life of a variant value. A deprecated value must still be in "variants" (it is allowed, with a warning); a renamed value must not be (it is gone), and its replacement must be.

Example ​

xml
<contract>
{ "name": "Card", "role": "group", "parts": ["root"], "variants": { "tone": ["info", "warn"] }, "renamedValues": { "tone": { "info": "warn" } } }
</contract>
<template><div class="root"></div></template>

What you see ​

text
ERROR  T3014  app/components/Card.tess:2:126
  "info" is listed as renamed but is still a value of tone. Remove it from "variants" once it is renamed.
  Run `tessera explain T3014` for details.

Fix ​

Keep a deprecated value in "variants". For a rename, remove the old value from "variants" and map it to the new one in "renamedValues".

All errors and warnings