Skip to content

There are no commands defined in the "setup" namespace. #2531

@DRAJI

Description

@DRAJI

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions