Try to create Magento 2 Module, Vendor name start with digit

Like : app/code/3dvendor/3dmodule (3dvendor_3dmodule)

when run "php bin/magento setup:di:compile" command we get error

Is it valid vendor and module name? can give me any suggestion.

we get name space error while run compile command

  • your path should be "app/code/3dvendor/3dmodule"
    – P_U
    Commented Jul 11, 2018 at 5:48
  • please share error which you are facing while compilation.
    – P_U
    Commented Jul 11, 2018 at 5:49
  • Hi @PareshaU that is typo mistake , compile command not run Commented Jul 11, 2018 at 6:22
  • can you please paste here the error message you are getting? Commented Jul 11, 2018 at 6:32
  • Can you post your registration.php and module.xml code in your question? Commented Jul 11, 2018 at 7:26

1 Answer 1


I tried with the same naming convention you mentioned. Magento allowed creating the module and no errors. Please check the screenshots of setup upgrade and entry in the config.php.

Setup Upgrade

entry in config.php

Not sure if your code folder has the upper case starting letter "C" in it or you wrongly mentioned in the question. If code folder name is all lower cases "code", then it should allow creating the module as in my case.

  • Hi @kalyan Please run php bin/magento setup:di:compile command while i run compile command at that time will get error Commented Jul 11, 2018 at 7:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.