I have installed latest version of Megento 2, everything was worked fine. I have created one custom module. After activated my custom module, I got an error like "Setup version for module 'Chilly_Draji' is not specified".
When i enable my module in first time, I didn't write composer.json file. After creating composer.json file, I can't able to upgrade. when i run command "php bin/magento setup:upgrade", got an below error
[InvalidArgumentException]
There are no commands defined in the "setup" namespace.