magento2
magento2 copied to clipboard
Compile error Impossible to process constructor argument Parameter
When we run bin/magento setup:di:compile on a 2.4.1 install we get the following error when MSI is disabled (Composer replace all the MSI packages).
Compilation was started.
Area configuration aggregation... 5/9 [===============>------------] 55% 1 min 206.0 MiB
In ClassReader.php line 45:
Impossible to process constructor argument Parameter #0 [ <required> Magento\InventorySalesApi\Api\Data\ItemToSellInterfaceFactory $itemToSellFactory ] of MultiSafepay\ConnectMSI\Model\StockReducer class
In ClassReader.php line 34:
Class Magento\InventorySalesApi\Api\Data\ItemToSellInterfaceFactory does not exist
setup:di:compile
Sorry. Missed the option for disabling the MSI MSP module.
I have this same issue. I disabled the MSI MSP module, and cleared all caches. but the error remains.