Open deancodes opened 2 years ago
Hi there, I just wanted to raise an issue we have started experiencing.
bin/magento m2bp:critical-css:generate will throw the following error:
bin/magento m2bp:critical-css:generate
In State.php line 136: Area code is already set
I believe the solution is to modify line 84 of vendor/m2-boilerplate/module-critical-css/src/Console/Command/GenerateCommand.php to:
vendor/m2-boilerplate/module-critical-css/src/Console/Command/GenerateCommand.php
if ( ! $this->state->getAreaCode()) { $this->state->setAreaCode(\Magento\Framework\App\Area::AREA_ADMINHTML); }
I have confirmed this resolved our issue.
Hi there, I just wanted to raise an issue we have started experiencing.
bin/magento m2bp:critical-css:generate
will throw the following error:I believe the solution is to modify line 84 of
vendor/m2-boilerplate/module-critical-css/src/Console/Command/GenerateCommand.php
to:I have confirmed this resolved our issue.