0

I have upgraded my magento version from 2.4.0 to 2.4.6-p3 and in exceptions.log file i am continuously getting one error i.e

main.CRITICAL: Magento\Framework\View\Asset\ContentProcessorException: Compilation from source: LESS file is empty: frontend/new/latest/en_US/Magento_Swatches/css/swatches.less in /chroot/home/a/com/html/vendor/magento/framework/Css/PreProcessor/Adapter/Less/Processor.php:99

If anyone have any solution. Please help!

asked Jan 24, 2024 at 14:35
1
  • Hi @Tisha, It seems like the issue is in the child theme. Can you check/verify the child theme.xml file has the correct parent theme name? Commented Jan 25, 2024 at 4:37

1 Answer 1

0

It appears that the problem lies with your child theme, which is causing Magento to be unable to inherit the swatches.less CSS.

Here is a link to a similar issue:

Compilation from source: LESS file is empty

Please take a look at the above link, as the solutions provided there may resolve your problem.

answered Jan 25, 2024 at 8:45
2
  • Checked the link and tried the solution but still issue persists Commented Jan 25, 2024 at 10:43
  • Have you overridden any Swatch module related files in your theme? If possible, could you please share your theme's XML file. Commented Jan 25, 2024 at 10:47

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.