Currently, some Magento js returned 404 error. Please check attached screenshot for the same.enter image description here

  • try to redeploy your static content and give permission and clear pub/static folder
    – nishu
    Jun 28, 2019 at 6:39

1 Answer 1


You should try this all M2 command:

sudo php bin/magento setup:upgrade
sudo php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento setup:static-content:deploy -f --theme Magento/backend
sudo php bin/magento cache:clean
sudo chmod -R 0777 pub var generated

This will solved your issue.

  • If this helps you. Please mark as a right answer.
    – Ravi Soni
    Jun 28, 2019 at 6:55

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.