setup upgrade command throws error while Installing data Area code is not set. The issue is coming from webkul core module. Anybody faced similar issue?

1 Answer 1


Fixed! I added this in installData.php

  • protected $state;
  • \Magento\Framework\App\State $appState in __construct params
  • $this->state = $appState;

And below code in start of install() function:

    catch (\Magento\Framework\Exception\LocalizedException $ex) {
  • I face the same issue at the time of setup upgrade for the Webkul_MpShipStation module, I try the above solution but not works. Dec 22, 2020 at 7:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.