magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Compile error Impossible to process constructor argument Parameter

Open JoostWan opened this issue 6 years ago • 2 comments

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

JoostWan avatar Nov 14 '20 12:11 JoostWan

Sorry. Missed the option for disabling the MSI MSP module.

JoostWan avatar Nov 14 '20 12:11 JoostWan

I have this same issue. I disabled the MSI MSP module, and cleared all caches. but the error remains.

Crossmotion avatar Jan 17 '23 15:01 Crossmotion