<!-- Source: https://service.themeware.design/en/wiki/knowledge-base/common-issues/administration/unable-to-compile-the-theme
     All pages of this collection: https://service.themeware.design/en/wiki/llms.txt -->

# Unable to compile the theme...

## Description

You get the error message `Unable to compile the theme "TcinnThemeWare..."` in the theme configuration.

<figure><img src="../../../.gitbook/assets/admin--error-unable-to-compile-the-theme.png" alt=""><figcaption></figcaption></figure>

## Cause

There are several possibilities here, because this error can be caused by an unknown variable in a configuration field or by an incorrectly filled configuration field.

* Unable to compile the theme "TcinnThemeWare...". Undefined variable $...
* Unable to compile the theme "TcinnThemeWare...". parse error: failed at $...

In addition, there are new error messages due to the new validation of the theme configuration from Shopware 6.6.9:&#x20;

* Unable to compile the theme "TcinnThemeWare...". Error: argument \`$color\` of \`red($color)\` must be a color
* Unable to compile the theme "TcinnThemeWare...". $color: 0 is not a color
* Unable to compile the theme "TcinnThemeWare...". $color2: 0 is not a color

## Solution

The part directly after the message `Unable to compile the theme "..."` is decisive. It says `Undefined variable $...` or `parse error: failed at $...` or a reference to the variable `$color` or `$color2`.

#### Unable to compile the theme "TcinnThemeWare...". <mark style="background-color:orange;">Undefined variable $...</mark>

{% content-ref url="undefined-variable.md" %}
[undefined-variable.md](undefined-variable.md)
{% endcontent-ref %}

#### Unable to compile the theme "TcinnThemeWare...". <mark style="background-color:orange;">parse error: failed at $...</mark>

{% content-ref url="parse-error.md" %}
[parse-error.md](parse-error.md)
{% endcontent-ref %}

#### Unable to compile the theme "TcinnThemeWare...". <mark style="background-color:orange;">Error: argument \`$color\` of</mark> \`red($color)\` must be a color

{% content-ref url="error-argument-color.md" %}
[error-argument-color.md](error-argument-color.md)
{% endcontent-ref %}

#### Unable to compile the theme "TcinnThemeWare...". <mark style="background-color:orange;">$color: 0 is not a color</mark>

{% content-ref url="color-0-is-not-a-color.md" %}
[color-0-is-not-a-color.md](color-0-is-not-a-color.md)
{% endcontent-ref %}

#### Unable to compile the theme "TcinnThemeWare...". <mark style="background-color:orange;">$color2: 0 is not a color</mark>

{% content-ref url="color2-0-is-not-a-color.md" %}
[color2-0-is-not-a-color.md](color2-0-is-not-a-color.md)
{% endcontent-ref %}
