Static content deploy issue
Solution is deprecated: Do not Not used it. Bad idea to switch to default
It got a solution, which may not be 100% right.
- First I change change current application mode to default from
developer
at app/etc/env.php['MAGE_MODE' => 'developer' to 'MAGE_MODE' => 'default']
. - Also,Manually by clearing the
pub/static
andvar/view_preprocessed
directories and subdirectories. except forpub/static/.htaccess
- Then run
php bin/magento setup:static-content:deploy
and it successfully generate static files. - And change Change current application
developer
and runphp bin/magento setup:static-content:deploy
and it successfully generate static files again.
Hope this will help anyone.