After upgrading magento 2.4.2 - Class not found error
Collection.php file is missing from Magento\Sales\Model\ResourceModel\Order\Invoice\Grid\ (from vendor folder)
ERROR (php bin/magento setup:di:compile) Class 'Magento\Sales\Model\ResourceModel\Order\Invoice\Grid\Collection' not found in drinkies-magento\vendor\THEME-FOLDER-NAME\THEME-SUB-FOLDER-NAME\src\Distributor\Model\ResourceModel\Order\Invoice\Grid\Collection.php
Any fix for the issue?
After some digging, replace it with
\Magento\Sales\Model\ResourceModel\Order\Invoice\Orders\Grid\Collection