Open pranavgaikwad opened 6 years ago
@pranavgaikwad - Its problem with magento 2.1.10 (maybe for earlier versions also). setup:install fails when you have any module which add console commands.
Workaround -
Try using Factory classes or Interface in __construct. In your case instead of Magento\Catalog\Model\ResourceModel\Product\Collection Try using Magento\Catalog\Model\ResourceModel\Product\CollectionFactory
@tushardatar that is not a workaround, but actually the correct solution :)
@peterjaap Tried @tushardatar's solution. Did not seem to work.
How to reproduce : Download fresh Magento code. Download this module using composer or directly put it under
app/code
. Try to run a fresh install usingbin/magento setup:install
command.Error Log
Magento Version : 2.1.10
I couldn't find the root cause. I assumed it could be because of incorrect load order of components. But, adding
<module name="Magento_Store"/>
under<sequence>
inmodule.xml
did not help.