- Issue created by @semiaddict
- Status changed to Closed: duplicate
over 1 year ago 9:07am 22 May 2023 - 🇩🇪Germany semiaddict
Oups, this seems to be actually caused by changes done in https://git.drupalcode.org/project/scss_compiler/-/merge_requests/3.
When using the LessPhp compiler, the following error is thrown:
> Error: Call to a member function getCss() on string in Drupal\scss_compiler\ScssCompilerService->compile() (line 471 of modules/contrib/scss_compiler/src/ScssCompilerService.php).
This is caused by the fact that the LessphpCompiler::compile method returns the CSS string by calling "getCss" instead of returning the parser as is done in other compilers.
1. setup the module to use the LessphpCompiler
2. visit a page that uses a .less file
Return "$this->parser" instead of "$this->parser->getCss()" in LessphpCompiler::compile.
Implement the change.
N/A
N/A
N/A
Closed: duplicate
1.0
Code
Oups, this seems to be actually caused by changes done in https://git.drupalcode.org/project/scss_compiler/-/merge_requests/3.