We just updated our test site from 2.3.1 to 2.3.3 and we are facing the same exact issue as in this discussion: https://magento.stackexchange.com/questions/291667/magento-2-3-2-error-while-compilation
In short, the compilation stops after 1/7 and the error log shows the same message as in the Stackexchange discussion. The compiler works normally if I rename/remove the file /vendor/magento/module-quote-graph-ql/Model/Cart/SetShippingAddressOnCart.php, but is this file deprecated and not needed anymore from 2.3.3 onwards?
And what about the rest of the files listed by G.G. in the same topic, are they also useless in the versions 2.3.3 and newer?
If they are deprecated, is there any programmatical way to find and delete all the old/deprecated files left behind by newer versions of Magento?
This Magento has been originally installed with Installatron and it's kept up-to-date with it also.
Solved! Go to Solution.
Hello @finbayern
You can delete vendor files and folder and run below commands:
php bin/magento maintenance:enable rm -rf vendor/ composer install composer require magento/product-community-edition=2.3.3 --no-update composer update rm -rf var/cache/* var/page_cache/* var/generation/* rm -rf var/di var/page_cache/ var/generation/ var/cache/* php bin/magento setup:upgrade php bin/magento setup:di:compile
php bin/magento cache:flush
Please take back-up vendor folder before deleting any files and folder.
Hello @finbayern
You can delete vendor files and folder and run below commands:
php bin/magento maintenance:enable rm -rf vendor/ composer install composer require magento/product-community-edition=2.3.3 --no-update composer update rm -rf var/cache/* var/page_cache/* var/generation/* rm -rf var/di var/page_cache/ var/generation/ var/cache/* php bin/magento setup:upgrade php bin/magento setup:di:compile
php bin/magento cache:flush
Please take back-up vendor folder before deleting any files and folder.