[2017-11-15] Struggling with this problem? Order my resolution service!
If you got the message:
Autoload error: An abstract factory could not create an instance of magentosetupconsolecommandmoduleuninstallcommand(alias: Magento\Setup\Console\Command\ModuleUninstallCommand).
as a respose to the command bin/magento setup:upgrade
, then you probably as syntax errors in your composer.json
.
To detect the exact problem do exception logging at the \Zend\ServiceManager\ServiceManager::createFromAbstractFactory()
method.