Magento 2: [InvalidArgumentException] There are no commands defined in the “setup” namespace

I am getting the following error while adding a new module to my Magento 2 installation and running the command on terminal php bin/magento setup:upgrade. [InvalidArgumentException] There are no commands defined in the “setup” namespace The same kind of error will be displayed in terminal when I try to run other commands like php bin/magento … Read more