WapplerSystems / ws_scss

SASS Compiler for TYPO3
12 stars 24 forks source link

RenderPreProcessorHook TYPO3 v11 Error in Case of a compile css error #67

Open ako-3004 opened 1 year ago

ako-3004 commented 1 year ago

Hi Sven, I just found out that the part

if(!GeneralUtility::getApplicationContext()->isProduction()) {
       DebugUtility::debug($ex->getMessage());
}

at line 194 in RenderPreProcessorHook is not compatible with TYPO3 v11 I think you can replace by \TYPO3\CMS\Core\Core\Environment::getContext() != 'Production' according to https://docs.typo3.org/c/typo3/cms-core/11.1/en-us/Changelog/10.2/Deprecation-89631-UseEnvironmentAPIToFetchApplicationContext.html

To trigger this error, just remove write access to CSS output directory, for example

best regards, Alex