0

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 Jul 11 '18 at 5:48
  • please share error which you are facing while compilation. – P_U Jul 11 '18 at 5:49
  • Hi @PareshaU that is typo mistake , compile command not run – Nikhil Vaghela Jul 11 '18 at 6:22
  • can you please paste here the error message you are getting? – Kalyan Chakravarthi V Jul 11 '18 at 6:32
  • Can you post your registration.php and module.xml code in your question? – Sukumar Gorai Jul 11 '18 at 7:26
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 – Nikhil Vaghela Jul 11 '18 at 7:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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