Skip to content

Error while running bin/magento setup:di:compile – Magento 2.3.4

this is driving me insane.

I am receiving the following error while running compile:

Fatal error: Cannot declare class MagentoSalesModelOrderPdfInvoice, because the name is already in use in /home/hucklebo/public_html/vendor/magento/module-sales/Model/Order/Pdf/Shipment.php on line 212

Any pointers how to resolve or debug this this as I can’t complete the compilation process after adding new modules.

The compile stops at: Class: /home/hucklebo/public_html/generated/code

Thank you. Magento 2.3.4