# Theme Compile klappt nicht

**URL:** <https://forum.shopware.com/t/theme-compile-klappt-nicht/95161>\
**Category:** Shopware 6 (German)\
**Created:** [6. Juli 2022 um 12:36 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161 "2022-07-06T12:36:48Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![root77](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/root77/32/16354_2.png) [@root77](https://forum.shopware.com/u/root77)\
**Post date:** [6. Juli 2022 um 12:36 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/1 "2022-07-06T12:36:48Z")

</div>

Hallo zusammen,

Wir erhalten folgende fehlermeldung wenn wir mit theme:compile das theme compilieren möchten.  
Wir finden einfach keinen Anhaltspunkt woran es liegen könnte.

php 7.4.28  
SW 6.4.12-13

```auto
12:27:23 INFO [php] User Deprecated: Since shopware/core : Class Shopware\Storefront\Event\ThemeCompilerEnrichScssVariablesEvent is deprecated. Use Shopware\Storefront\Theme\Event\ThemeCompilerEnrichScssVariablesEvent instead.
[
  "exception" => ErrorException {
    #message: "User Deprecated: Since shopware/core : Class Shopware\Storefront\Event\ThemeCompilerEnrichScssVariablesEvent is deprecated. Use Shopware\Storefront\Theme\Event\ThemeCompilerEnrichScssVariablesEvent instead."
    #code: 0
    #file: "./vendor/shopware/core/Framework/Feature.php"
    #line: 148
    #severity: E_USER_DEPRECATED
    trace: {
      ./vendor/shopware/core/Framework/Feature.php:148 { …}
      ./vendor/shopware/storefront/Event/ThemeCompilerEnrichScssVariablesEvent.php:47 { …}
      ./vendor/shopware/storefront/Theme/ThemeCompiler.php:431 { …}
      ./vendor/shopware/storefront/Theme/ThemeCompiler.php:311 { …}
      ./vendor/shopware/storefront/Theme/ThemeCompiler.php:185 { …}
      ./vendor/shopware/storefront/Theme/ThemeService.php:71 { …}
      ./vendor/shopware/storefront/Theme/Command/ThemeCompileCommand.php:50 { …}
      ./vendor/symfony/console/Command/Command.php:298 { …}
      ./vendor/symfony/console/Application.php:1042 { …}
      ./vendor/symfony/framework-bundle/Console/Application.php:96 { …}
      ./vendor/symfony/console/Application.php:299 { …}
      ./vendor/symfony/framework-bundle/Console/Application.php:82 { …}
      ./vendor/symfony/console/Application.php:171 { …}
      ./bin/console:77 {
        › $application->setVersion($kernel->getKernel()->getContainer()->getParameter('kernel.shopware_version'));
        › $application->run($input);
        › 
      }
    }
  }
]
12:27:23 INFO [php] User Deprecated: Returning a file to import for CSS or external references in custom importer callables is deprecated and will not be supported anymore in ScssPhp 2.0. This behavior is not compliant with the Sass specification. Update your "closure{/var/www/html/dev2/vendor/shopware/storefront/Theme/ThemeCompiler.php:275}" importer.
[
  "exception" => ErrorException {
    #message: "User Deprecated: Returning a file to import for CSS or external references in custom importer callables is deprecated and will not be supported anymore in ScssPhp 2.0. This behavior is not compliant with the Sass specification. Update your "closure{/var/www/html/deutsche-zauntechnik-dev2/vendor/shopware/storefront/Theme/ThemeCompiler.php:275}" importer."
    #code: 0
    #file: "./vendor/scssphp/scssphp/src/Compiler.php"
    #line: 5792
    #severity: E_USER_DEPRECATED
    trace: {
      ./vendor/scssphp/scssphp/src/Compiler.php:5792 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:2669 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:2885 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:2348 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:5715 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:2673 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:2885 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:2348 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:5715 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:2673 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:2885 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:2348 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:736 { …}
      ./vendor/scssphp/scssphp/src/Compiler.php:516 { …}
      ./vendor/shopware/storefront/Theme/ThemeCompiler.php:315 { …}
      ./vendor/shopware/storefront/Theme/ThemeCompiler.php:185 { …}
      ./vendor/shopware/storefront/Theme/ThemeService.php:71 { …}
      ./vendor/shopware/storefront/Theme/Command/ThemeCompileCommand.php:50 { …}
      ./vendor/symfony/console/Command/Command.php:298 { …}
      ./vendor/symfony/console/Application.php:1042 { …}
      ./vendor/symfony/framework-bundle/Console/Application.php:96 { …}
      ./vendor/symfony/console/Application.php:299 { …}
      ./vendor/symfony/framework-bundle/Console/Application.php:82 { …}
      ./vendor/symfony/console/Application.php:171 { …}
      ./bin/console:77 {
        › $application->setVersion($kernel->getKernel()->getContainer()->getParameter('kernel.shopware_version'));
        › $application->run($input);
        › 
      }
    }
  }

```

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [6. Juli 2022 um 16:23 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/2 "2022-07-06T16:23:54Z")

</div>

INFO, ich sehe hier keinen Error.

---

<div class="post-metadata">

**Author:** ![root77](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/root77/32/16354_2.png) [@root77](https://forum.shopware.com/u/root77)\
**Post date:** [6. Juli 2022 um 17:15 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/3 "2022-07-06T17:15:14Z")

</div>

Hallo,

„exception“ =\> ErrorException bzw. wird da auch von Deprecated gesprochen.  
Tut am ende aber nichts zur Sache denn er bricht den Vorgang an dieser Stelle ab.

Für mich klingt es so als wären 2 Teile Deprecated bzw. schon darüber hinaus und deshalb bricht er ab.

Wir sind dankbar für jede Idee

---

<div class="post-metadata">

**Author:** ![StefanB](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@StefanB](https://forum.shopware.com/u/StefanB)\
**Post date:** [8. Juli 2022 um 04:56 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/4 "2022-07-08T04:56:52Z")

</div>

Guten Morgen,

bei mir tritt diese Exception auch seit dem neusten Dockware-Image auf. Auch bei mir bricht daraufhin der Prozess ab.

---

<div class="post-metadata">

**Author:** ![root77](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/root77/32/16354_2.png) [@root77](https://forum.shopware.com/u/root77)\
**Post date:** [8. Juli 2022 um 10:19 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/5 "2022-07-08T10:19:07Z")

</div>

Leider haben wir auch noch keine Lösung.  
Maximal einen Workaround.

Das Plugin Frosh Tools installiert. Dort kann man im Backend per Knopf das Theme Kompilieren. Dort klappt es.

---

<div class="post-metadata">

**Author:** ![G-K](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@G-K](https://forum.shopware.com/u/G-K)\
**Post date:** [9. Juli 2022 um 07:26 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/6 "2022-07-09T07:26:09Z")

</div>

Geht mir gerade genauso, habe an einem Dockware weiterarbeiten wollen… logge mich ins Admin ein, stelle fest: „oh - ein Update“ (6.4.13.0) - also erstmal Update gemacht … paar Änderungen am scss gemacht, theme:compile → zack! selber Fehler. Vorher gings, jetzt nicht mehr… ich schreib’s jetzt erstmal dem letzten update zu.

hab spaßenshalber mal die ThemeCompiler.php ausm Git wiederhergestellt  
Danach bekomme ich zwar noch die selben Fehler, allerdings läuft der Compile-Vorgang durch.

---

<div class="post-metadata">

**Author:** ![\_MikeB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/_mikeb/32/7856_2.png) [@\_MikeB](https://forum.shopware.com/u/_MikeB)\
**Post date:** [20. Juli 2022 um 12:47 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/7 "2022-07-20T12:47:41Z")

</div>

Hi. Gab es hier schon eine Lösung? Habe aktuell das selbe Problem… Update durchgeführt, compiler tut nicht mehr

---

<div class="post-metadata">

**Author:** ![cmichael](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/cmichael/32/17810_2.png) [@cmichael](https://forum.shopware.com/u/cmichael)\
**Post date:** [31. Juli 2022 um 14:07 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/8 "2022-07-31T14:07:31Z")

</div>

Ich reihe mich hier ein - selbiges Problem mit 6.4.13.

---

<div class="post-metadata">

**Author:** ![AlexBS](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@AlexBS](https://forum.shopware.com/u/AlexBS)\
**Post date:** [1. August 2022 um 06:58 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/9 "2022-08-01T06:58:27Z")

</div>

Selbes Problem, nur führt er mein Compile Gott sei dank richtig aus. Arbeite aber direkt am Server ohne Docker/Dockware. Aber das Problem besteht schon seit einem Monat und es wurde bisher nicht behoben. Wieder mal ein Armutszeugnis…

---

<div class="post-metadata">

**Author:** ![SmartStylez](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@SmartStylez](https://forum.shopware.com/u/SmartStylez)\
**Post date:** [1. August 2022 um 10:08 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/10 "2022-08-01T10:08:16Z")

</div>

In neuesten Update (Shopware 6.4.14.0) wurde diesbezüglich etwas behoben:

> **[Shopware Issuetracker](https://issues.shopware.com/issues/NEXT-22261)**
>
> Shopware Issuetracker

---

<div class="post-metadata">

**Author:** ![avirto-cb](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@avirto-cb](https://forum.shopware.com/u/avirto-cb)\
**Post date:** [18. August 2022 um 13:57 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/11 "2022-08-18T13:57:39Z")

</div>

Hallo,

gleiches Problem hier mit dockware/dev 6.4.13 sowie latest 6.4.14 (wo es angeblich behoben sein soll…)

Das Compiling via `make watch-storefront` geht da immer noch nicht. Die Exception besteht weiterhin. Kann das jemand bestätigen?

---

<div class="post-metadata">

**Author:** ![AlexBS](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@AlexBS](https://forum.shopware.com/u/AlexBS)\
**Post date:** [26. August 2022 um 07:02 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/12 "2022-08-26T07:02:09Z")

</div>

Bei mir kommt der Fehler auch noch in der normalen Production Installation im dev Modus.

---

<div class="post-metadata">

**Author:** ![mga](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mga](https://forum.shopware.com/u/mga)\
**Post date:** [26. August 2022 um 13:11 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/13 "2022-08-26T13:11:58Z")

</div>

Arbeite mit Dockware und ich bin das Problem umgangen indem ich in der Docker-Compose.yml unter „volumes:“ nur die Plugins mit dem Container abgleichen lasse und Befehle wie theme:compile und watch storefront nur im Docker Container ausführe

---

<div class="post-metadata">

**Author:** ![openmindculture](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/openmindculture/32/8658_2.png) [@openmindculture](https://forum.shopware.com/u/openmindculture)\
**Post date:** [20. Dezember 2023 um 14:11 UTC](https://forum.shopware.com/t/theme-compile-klappt-nicht/95161/14 "2023-12-20T14:11:46Z")

</div>

Ähnliches Problem, aber ohne Abbruch mit Shopware 6.5.7.3 im dockware/dev:latest Container. Scheinbar ist die Warnung nicht mehr fatal und kann safe mit `--no-debug` unterdrückt werden. Der `--no-debug` Switch funktioniert bei mir bei bin/console theme:compile , aber nicht bei `bin/build-storefront.sh` das die gleiche Deprecation meldet.

Die Empfehlung zu `--no-debug` wurde auf StackOverflow von Alex bestätigt: [https://stackoverflow.com/questions/77584483/shopware-theme-commands-returns-error-e-user-deprecated](https://stackoverflow.com/questions/77584483/shopware-theme-commands-returns-error-e-user-deprecated)

Ich habe den Fall auch in meinem subjektiven Deprecations since 6.0 Blogpost ergänzt, vielleicht ist der insgesamt hilfreich in solchen Situationen:  
[https://dev.to/ingosteinke/shopware-changes-since-the-60-dev-training-videos-481o](https://dev.to/ingosteinke/shopware-changes-since-the-60-dev-training-videos-481o)
