After installing Magento 2.3.1 with sample data on my localhost, When I am trying to open the home page it shows blank. My console contains an error as shown in the image. Please help.. Thanks!



1 Answer 1


please run below commands:

rm -rf generated/* var/cache/* pub/static/*

php bin/magento s:d:c

php bin/magento s:up && php bin/magento s:s:d -f

php bin/magrnto c:f

and check


Your Answer

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

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