When ever i run bin/magento setup:static-content:deploy
it outputs the following error:
PHP Fatal error: Uncaught TypeError: Argument 15 passed to Magento\Deploy\Model\Deploy\LocaleDeploy::__construct() must be of the type array, null given, called in /vagrant/project-community-edition/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on l ine 93 and defined in /vagrant/project-community-edition/vendor/magento/module-deploy/Model/Deploy/LocaleDeploy.php:177
with the stack trace of:
0 /vagrant/project-community-edition/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Magento\Deploy\Model\Deploy\LocaleDeploy->__construct(Object(Symfony\Component\Console\Output\ConsoleOutput), Object(Magento\Translation\Model\Js\Config), Object (Magento\Framework\View\Asset\Minification), Object(Magento\Framework\View\Asset\Repository), Object(Magento\Framework\View\Asset\RepositoryFactory), Object(Magento\RequireJs\Model\FileManagerFactory), Object(Magento\Framework\RequireJs\ConfigFactory), Object(Magento\Fra mework\App\View\Asset\Publisher), Object(Magento\Framework\View\Asset\Bundle\Manager), Object(Ma in /vagrant/project-community-edition/vendor/magento/module-deploy/Model/Deploy/LocaleDeploy.php on line 177
This is with Magento 2.1.7.
Update:
I did a fresh install and it turns out if you run php bin/magento setup:di:compile
before you run setup:static-content:deploy
it causes the error.