-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hi there, I just wanted to raise an issue we have started experiencing.
bin/magento m2bp:critical-css:generate will throw the following error:
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:
if ( ! $this->state->getAreaCode()) {
$this->state->setAreaCode(\Magento\Framework\App\Area::AREA_ADMINHTML);
}
I have confirmed this resolved our issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels