Leafo\ScssPhp library is not working

Created on 10 May 2023, over 1 year ago

Problem/Motivation

When, we are running the following command getting the error.

drush sass:compile themes/custom/themename/scss themes/custom/themename/css

[error]  Leafo\ScssPhp\Exception\CompilerException: Undefined variable $primary-color: line: 43 in /var/www/html/vendor/leafo/scssphp/src/Compiler.php:3920

Steps to reproduce

1. Install the module.
2. Install the library composer require leafo/scssphp
3. Run the drush command

Proposed resolution

We can replace the the library leafo/scssphp according to the author.
https://packagist.org/packages/leafo/scssphp

Need to add composer require scssphp/scssphp library.
https://packagist.org/packages/scssphp/scssphp

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India shashank5563 New Delhi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024