Hello community.
I would like to report an issue related to the "bin/magento setup:di:compile" command.
Since upgrading to version 2.4.6, I have encountered the following error:
Error message: /vendor/magento/module-inventory-sales-async-order/Model/ReservationExecution.php on line 19 Interface "Magento\InventorySales\Model\ReservationExecutionInterface" not found. #0 /Users/x/PhpstormProjects/development/src/vendor/composer/ClassLoader.php(582): include()
Steps to reproduce the error:
Expected behavior: The "bin/magento setup:di:compile" command should execute successfully without any errors.
Current behavior: When executing the "bin/magento setup:di:compile" command, an error occurs indicating a missing interface. The interface "Magento\InventorySales\Model\ReservationExecutionInterface" in the file "/vendor/magento/module-inventory-sales-async-order/Model/ReservationExecution.php" cannot be found.
This error prevents me from successfully running the compilation script and impacts the functionality of the Magento installation.
Thank you for your assistance in addressing this issue. I look forward to your response and working together to resolve the error.
Hello @mschauerhe132f
You can work around the issue by manually creating the interface "Magento\InventorySales\Model\ReservationExecutionInterface". To do this, open the file "/vendor/magento/module-inventory-sales-async-order/Model/ReservationExecution.php" and add the following code to the top of the file: