Shopware 6.6.9.0

Mit dem Update auf Shopware 6.6.9.0 kann es vermehrt aufkommen, dass das Theme nicht gespeichert und kompiliert werden kann. Es erscheint eine Fehlermeldung.

Fehlermeldung

// Fehlermeldung
Unable to compile the theme "THEMENAME". Error: argument `$color` of `red($color)` must be a color: /home/shopware6/vendor/shopware/storefront/Resources/app/storefront/vendor/bootstrap/scss/_functions.scss on line 184, at column 3 Call Stack: #0 function luminance /home/shopware6/vendor/shopware/storefront/Resources/app/storefront/vendor/bootstrap/scss/_functions.scss on line 174 #1 function contrast-ratio /home/shopware6/vendor/shopware/storefront/Resources/app/storefront/vendor/bootstrap/scss/_functions.scss on line 159 #2 function color-contrast /home/shopware6/custom/plugins/zenitPlatformTHEMENAME/src/Resources/app/storefront/src/scss/component/_product-detail-content-accordion.scss on line 7 #3 import /home/shopware6/custom/plugins/zenitPlatformTHEMENAME/src/Resources/app/storefront/src/scss/component/_product-detail-content-accordion.scss /home/shopware6/custom/plugins/zenitPlatformTHEMENAME/src/Resources/app/storefront/src/scss/base.scss on line 63 #4 import /home/shopware6/custom/plugins/zenitPlatformTHEMENAME/src/Resources/app/storefront/src/scss/base.scss (unknown file) on line 656

Ursache

Das hängt vermutlich mit dem in Version 6.6.9.0 umgesetzten Issue NEXT-21038 zusammen, in welchem ein SCSSValidator implementiert wurde.

Bisher war es so, dass leere Farbfelder einen Fallback-Farbwert aus dem Theme SCSS übernommen haben. Nun wir bei leeren Farbfeldern ein SCSS-Fehler geworfen und das Theme wird nicht mehr kompiliert. Mehr Informationen findest Du im Beitrag Theme Speicher Fehler.

Ungültiges Feld führt zu einem Felder

Lösungsvorschlag

Überprüfe die Farbfelder Theme-Konfiguration auf leere Felder und trage hier eine Farbe oder den Wert transparent ein.

Last updated

Was this helpful?