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.
default
Magento mode !production
ordevelopper
, a default one is just set by default when you install a Magento in the first time.