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
app/design/frontend/website/default/Magento_Theme/web/js/main.js