MultiSafepay / magento2

MultiSafepay plugin for Magento 2
Open Software License 3.0
19 stars 8 forks source link

Compile error Impossible to process constructor argument Parameter #1

Closed JoostWan closed 3 years ago

JoostWan commented 3 years ago

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 commented 3 years ago

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

Crossmotion commented 1 year ago

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