I’m installing Magento 2.4.1-p1 on a developers local using docker to create the environment.
I have installed Magento and imported the DB
and run:
#This run just fine
composer update -vvv
#This run just fine
php bin/magento setup:upgrade
#This run just fine
php bin/magento setup:di:compile
#Get the error here
php bin/magento setup:static-content:deploy -f
#Error
Fatal error: Uncaught Error: Cannot instantiate interface MagentoFrameworkConfigReaderInterface in /www/projectname/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
Stack trace:
#0 /www/projectname/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject(‘MagentoFramewo…’, Array)
#1 /www/projectname/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryCompiled->create(‘MagentoFramewo…’)
#2 /www/projectname/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get(‘MagentoFramewo…’)
#3 /www/projectname/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array, ‘MagentoFramewo…’, NULL, ‘reader’, ‘MagentoFramewo…’)
#4 /www/projectname/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.p in /www/projectname/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 121
I have tried deleting generated and var in app root, and flushed redis container
Any solution or suggestions will be appreciated