0

During the process of updating my Magento2 website, the console commands fail to create my main.js file, and shows me this error static/frontend/website/default/pt_PT/js/main.js net::ERR_ABORTED 404 (Not Found)

I've tried to flush the cachem, re-index, and update

>Clean cache
 php bin/magento cache:clean

>Upgrade php bin/magento setup:upgrade

>Deploy php bin/magento setup:static-content:deploy php bin/magento setup:static-content:deploy pt_PT -f

>Reindex php bin/magento indexer:reindex

>Compile php bin/magento setup:di:compile

But it did nothing basically, because i always end up getting the 404 cannot find main.js file. This might be causing some other problems in my magento website.

I've already checked this question and this question

1 Answers1

0

First, check if var/ and pub/ folders have proper permissions, then run below commands in same order:

  • rm -rf generated
  • php bin/magento indexer:reindex
  • php bin/magento setup:upgrade
  • php bin/magento setup:di:compile
  • php bin/magento setup:static-content:deploy -f
  • php bin/magento cache:clean
Pankaj
  • 1
  • 1