We have a custom console command and it was working fine in Magento 2.2.7 , when we move this extension to Magento 2.3 it failed when we running setup:upgrade.
Anyone who have faced exact similar issue. Please do help.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Add this to the
<type name="Vendor\ModuleName\Command\OrderQueue"> <arguments> <argument name="state" xsi:type="object">Magento\Framework\App\State\Proxy</argument> <argument name="orderCron" xsi:type="object">Vendor\ModuleName\Order\Proxy</argument> </arguments> </type>
you can also remove
$this->state->setAreaCode(\Magento\Framework\App\Area::AREA_FRONTEND); from the