[Magento 2.2] How to fix the «Argument 1 passed to Magento\Framework\App\Action\Action::__construct() must be an instance of Magento\Framework\App\Action\Context, instance of Magento\Framework\ObjectManager\ObjectManager given» issue?

Recompile the autogenerated code.