How to fix ‘No such file or directory for vendor/composer/../../generated/code/Magento/Framework/App/ResourceConnection/Proxy.php’ in Magento 2.x


If you are trying to run a setup:upgrade or setup:di:compile, and getting the No such file or directory error message for the Proxy class, that usually happens after installing new modules through composer, where the application is not able to see the new files that were created after that migration.

The most easiest way to get that solved, is running the following command:


Hope it helps you. Enjoy!