After upgrading Magento from 2.3.1 to 2.3.3, while running di:compile
, it throws following error.
Extra parameters passed to parent construct: $messageFactory, $emailMessageInterfaceFactory, $mimeMessageInterfaceFactory, $mimePartInterfaceFactory, $addressConverter.
File: /vendor/magento/module-newsletter/Model/Queue/TransportBuilder.php
Total Errors Count: 1
module-newsletter/Model/Queue/TransportBuilder
?magento se:up
beforemagento se:di:co
may help as it is doing a bit of clean-up.