I have below error while I am compiling the Magento Store. it took very long time and finally gave this error.
php bin/magento setup:di:compile
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityUpdate setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php
if (preg_match($pattern, $fileItem->getRealPath())) {
to
if (preg_match($pattern, str_replace('\\', '/', $fileItem->getRealPath()))) {
Check this Link, Fixed by Magento.