Posted on

Magento 2.2 some JS files are not loading in production mode

In Magento 2.2.2 when setting website into production mode the following files are not loading, due to which my store switcher and other ui functions are not working in production mode:

http://website.com/static/frontend/vendor/theme/en_US/jquery/ui.js

http://website.com/static/frontend/vendor/theme/en_US/jquery/validate.js

http://website.com/static/frontend/vendor/theme/en_US/jquery/jquery-storageapi.js

All the CSS and Fonts are loading properly in both production as well as developer mode.

Important:
I was not able to find these js files in developer mode when checked the network tab of inspector.

Can someone tell me where to look for errors?

Update 1:

I have checked and found that these js file errors are only found in default (pt_BR) Store. When I have checked it for other store(en_US) there were no errors and everything is working fine in this store.

Update 2:

When I have tried php bin/magento setup:static-content:deploy en_US pt_BR then these js file error occurred in both the stores.

P.S: There is nothing helpful in var logs.

Leave a Reply

Your email address will not be published. Required fields are marked *