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!
- 
 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?Deepak MageDivine– Deepak MageDivine2024年01月25日 04:37:59 +00:00Commented Jan 25, 2024 at 4:37
1 Answer 1
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.
- 
 Checked the link and tried the solution but still issue persistsTisha Jhanwar– Tisha Jhanwar2024年01月25日 10:43:54 +00:00Commented 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.Deepak MageDivine– Deepak MageDivine2024年01月25日 10:47:44 +00:00Commented Jan 25, 2024 at 10:47
Explore related questions
See similar questions with these tags.