Magnto2 Type Error occurred when creating object:

Type Error occurred when creating object:

在Mgento2中出现上面错误的时候,需要执行下面的命令操作:

php bin/magento setup:di:compile