Compilation was started.

Area configuration aggregation... 5/9 [===============>------------]  55% 1 min 642.5 MiB
In ErrorHandler.php line 61:
 Warning: Undefined array key "instance" in /var/www/VENDOR/setup/src/Magento/Setup/Module/Di/Compiler/ArgumentsResolver.php on line 171
  • Did you figure it out? I'm having the same issue.
    – Thrallix
    Dec 15, 2022 at 10:11

2 Answers 2


Try to change the code in /var/www/VENDOR/setup/src/Magento/Setup/Module/Di/Compiler/ArgumentsResolver.php on line 171

Do it like this:


$argument = $this->getInstanceArgument($config['instance']);


Then run setup:di:compile


Do bin/magento c:f and then bin/magento setup:di:compile again

Your Answer

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

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