After installing a module and attempting to run the setup:upgrade command it is possible you may encounter an error about Monolog\Logger. This issue indicates a conflict or problem with the existing generated files on your store.
To resolve this, simply clear the contents of Magento's generated folder and try again. If the store is in production mode, be sure to recompile these files. The commands would be run such as:
cd <Magento site root> rm -rf generated/* php bin/magento setup:upgrade <If the store is in Production mode> php bin/magento setup:di:compile php bin/magento setup:static-content:deploy
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article