I'm facing the terrible issue, I can't run any commands via terminal. It says the below error:
Class Magento\Framework\App\ResourceConnection\Proxy does not exist
Can anyone please help me to solve this issue?
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 community
Magento 2.3.3 Commerce. It was related with optimize parameter for me.
composer dump-autoload --optimize
I noticed it needed to run the command with optimize twice
php7.2 /usr/local/bin/composer dump-autoload --no-dev -o Generating optimized autoload files php7.2 bin/magento setup:di:compile Class Magento\Framework\App\ResourceConnection\Proxy does not exist php7.2 /usr/local/bin/composer dump-autoload --no-dev -o Generating optimized autoload files php7.2 bin/magento setup:di:compile Compilation was started. Interception cache generation... 7/7 [============================] 100% 49 secs 446.0 MiB Generated code and dependency injection configuration successfully.
Also, second running worked longer than first running. It's strange and I don't understand the reason such behavior.