After fresh install magento 2.4.1, running the command setup:di:compile gives the error
currently working on windows i tried all this on developer mode chmod -R -v 777 generated
1) php bin/magento cache:clear
2) php bin/magento setup:upgrade
3) php bin/magento setup:di:compile
4) php bin/magento setup:static-content:deploy -f
but still same issue