magento2static-content

Could not read config file while deploying static content in Magento 2?


It shows error in FileResolver file.

enter image description here


Solution

  • Check {your_theme_dir}/etc/view.xml file, then, if empty, copy it from Magento_blank theme and run setup:static-content:deploy again.