Question

I have an error during the compilation due to a not completed developed module. As I'm still working on the module I would disable it and continue the compilation. I used to do that on magento1.

I tried:

  1. disable it with magento module:disable
  2. run magento setup:upgrade
  3. run the compilation again
  4. Check app/etc/config.php the module name is not included

but magento keeps reporting error.

Is the only way to get rid of the module folder?

Was it helpful?

Solution

if you want to get rid of any of the module from compilation,

You just need to remove registration.php file from your module. Removing registration.php file from module, module will not consideration inside di:compile

if you just disable module using command at that time compilation consider all of those files of module.

Best way is remove registration.php file or rename it to get rid off from compilation.

Thanks.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top