contao-themes-net / nature-theme-bundle

nature theme bundle for contao cms
Other
7 stars 2 forks source link

Enabling SCSS-files as external stylesheets throws an error (frontend-visualization not possible) #55

Closed erikp152 closed 1 year ago

erikp152 commented 2 years ago

Hallo Zusammen, sobald ich den Seitenlayouts (egal in welchem) die SCSS Datei "_custom_variables"aktiviere, um das Styling anzupassen, wird das Frontend nicht mehr geladen: Es ist ein Fehler aufgetreten. Hierzu habe ich lediglich "$button-color: $grey-darker;" aktiviert durch Entfernen der Auskommentierung.

Im Log findet sich Folgendes hierzu: ` [2022-04-26 20:25:42] request.INFO: Matched route "tl_page.55". {"route":"tl_page.55","route_parameters":{"_token_check":true,"_controller":"Contao\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\PageModel: {})","parameters":"","_route":"tl_page.55"},"request_uri":"http://xyz.de/ueber-uns.html","method":"GET"} [] [2022-04-26 20:25:43] security.INFO: Populated the TokenStorage with an anonymous Token. [] [] [2022-04-26 20:25:43] request.CRITICAL: Uncaught PHP Exception ScssPhp\ScssPhp\Exception\CompilerException: "Undefined variable $grey-darker: _custom_variables.scss on line 34, at column 1" at .../vendor/scssphp/scssphp/src/Compiler.php line 6102 {"exception":"[object] (ScssPhp\ScssPhp\Exception\CompilerException(code: 0): Undefined variable $grey-darker: _custom_variables.scss on line 34, at column 1 at .../vendor/scssphp/scssphp/src/Compiler.php:6102)"} []

` Mache ich etwas falsch oder handelt es sich schlichtweg um einen Fehler? Wo kann ich diese Variable definieren?

seibtph commented 2 years ago

Den Fehler kann ich nicht reproduzieren. Du kannst mal versuchen die aktuellste Version 1.9.0 zu installieren. Fall es nicht klappt: Hast du sonst irgendwas geändert? z. B. die SCSS-Dateien extra nochmal im Layout eingebunden, das ist nicht nötig.

MDevster commented 1 year ago

Closed, as there was no response. You are welcome to reopen it.