0

Whenever I run the cmd via terminal to compile assets my CSS is being churned out with the following error

error evaluating function `darken` The first argument to darken must be a color index: 2570
#0 /mnt/data/home/238489.cloudwaysapps.com/fsvuphkpwz/public_html/vendor/magento/framework/View/Asset/PreProcessor/AlternativeSource.php(154): Magento\Framework\Css\PreProcessor\Adapter\Less\Processor->processContent(Object(Magento\Framework\View\Asset\File))
#1 /mnt/data/home/238489.cloudwaysapps.com/fsvuphkpwz/public_html/vendor/magento/framework/View/Asset/PreProcessor/AlternativeSource.php(114): Magento\Framework\View\Asset\PreProcessor\AlternativeSource->processContent('css/styles-l.cs...', '', '', Object(Magento\Framework\View\Asset\File\FallbackContext))
#2 /mnt/data/home/238489.cloudwaysapps.com/fsvuphkpwz/public_html/vendor/magento/module-developer/Model/View/Asset/PreProcessor/PreprocessorStrategy.php(76): Magento\Framework\View\Asset\PreProcessor\AlternativeSource->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
#3 /mnt/data/home/238489.cloudwaysapps.com/fsvuphkpwz/public_html/vendor/magento/framework/View/Asset/PreProcessor/Pool.php(77): Magento\Developer\Model\View\Asset\PreProcessor\PreprocessorStrategy->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
#4 /mnt/data/home/238489.cloudwaysapps.com/fsvuphkpwz/public_html/vendor/magento/framework/View/Asset/Source.php(152): Magento\Framework\View\Asset\PreProcessor\Pool->process(Object(Magento\Framework\View\Asset\PreProcessor\Chain))
#5 /mnt/data/home/238489.cloudwaysapps.com/fsvuphkpwz/public_html/vendor/magento/framework/View/Asset/Source.php(105): Magento\Framework\View\Asset\Source->preProcess(Object(Magento\Framework\View\Asset\File))
#6 /mnt/data/home/238489.cloudwaysapps.com/fsvuphkpwz/public_html/vendor/magento/framework/View/Asset/File.php(157): Magento\Framework\View\Asset\Source->getFile(Object(Magento\Framework\View\Asset\File))
#7 /mnt/data/home/238489.cloudwaysapps.com/fsvuphkpwz/public_html/vendor/magento/framework/App/StaticResource.php(134): Magento\Framework\View\Asset\File->getSourceFile()
#8 /mnt/data/home/238489.cloudwaysapps.com/fsvuphkpwz/public_html/vendor/magento/framework/App/Bootstrap.php(257): Magento\Framework\App\StaticResource->launch()
#9 /mnt/data/home/238489.cloudwaysapps.com/fsvuphkpwz/public_html/pub/static.php(13): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\StaticResource))
#10 {main}
  • 1
    The error simply means that color value of the darken is not really a color, so just check your code. (Or at least provide more information"). – Frontend Dev Jan 28 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.