Magento 2.2 some JS files are not loading in production modeOverride Magento 2 JS file via requirejs-config.js not workingCSS and JS files not loading in Production modeProblem Setting Production Mode - Deploying Static Content - Command returned non-zero exit code:Magento2 css images deploy static files languageMagento 2 production mode not setNot able to set Magento 2.2.2 to production modeMagento 2 is not reading my requirejs-config.jsProduction mode won't geneate files inside var/view_processed folderMagento 2.1 not loading some js and css in production modeMagento 2 shell shows production mode, but still in developer mode

Check if two datetimes are between two others

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

A poker game description that does not feel gimmicky

Unbreakable Formation vs. Cry of the Carnarium

Does bootstrapped regression allow for inference?

Is it wise to focus on putting odd beats on left when playing double bass drums?

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

What is the offset in a seaplane's hull?

Ideas for 3rd eye abilities

Could a US political party gain complete control over the government by removing checks & balances?

Does it makes sense to buy a new cycle to learn riding?

Hosting Wordpress in a EC2 Load Balanced Instance

Re-submission of rejected manuscript without informing co-authors

Is this food a bread or a loaf?

How many letters suffice to construct words with no repetition?

Email Account under attack (really) - anything I can do?

Is there a way to make member function NOT callable from constructor?

What is GPS' 19 year rollover and does it present a cybersecurity issue?

What do you call words made from common English words?

What do the Banks children have against barley water?

How to manage monthly salary

How would photo IDs work for shapeshifters?

Why doesn't a const reference extend the life of a temporary object passed via a function?

aging parents with no investments



Magento 2.2 some JS files are not loading in production mode


Override Magento 2 JS file via requirejs-config.js not workingCSS and JS files not loading in Production modeProblem Setting Production Mode - Deploying Static Content - Command returned non-zero exit code:Magento2 css images deploy static files languageMagento 2 production mode not setNot able to set Magento 2.2.2 to production modeMagento 2 is not reading my requirejs-config.jsProduction mode won't geneate files inside var/view_processed folderMagento 2.1 not loading some js and css in production modeMagento 2 shell shows production mode, but still in developer mode






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















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.










share|improve this question
























  • I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.

    – jafar pinjar
    Aug 31 '18 at 17:05











  • @jafarpinjar Still default mode is same as developer. I need to enable production mode.

    – Wasiq Shahrukh
    Sep 3 '18 at 3:51






  • 1





    It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.

    – PЯINCƏ
    Sep 3 '18 at 7:45


















0















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.










share|improve this question
























  • I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.

    – jafar pinjar
    Aug 31 '18 at 17:05











  • @jafarpinjar Still default mode is same as developer. I need to enable production mode.

    – Wasiq Shahrukh
    Sep 3 '18 at 3:51






  • 1





    It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.

    – PЯINCƏ
    Sep 3 '18 at 7:45














0












0








0


0






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.










share|improve this question
















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.







multistore magento2.2.2 requirejs production-mode ui






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 4 '18 at 4:55







Wasiq Shahrukh

















asked Aug 31 '18 at 13:24









Wasiq ShahrukhWasiq Shahrukh

3651223




3651223












  • I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.

    – jafar pinjar
    Aug 31 '18 at 17:05











  • @jafarpinjar Still default mode is same as developer. I need to enable production mode.

    – Wasiq Shahrukh
    Sep 3 '18 at 3:51






  • 1





    It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.

    – PЯINCƏ
    Sep 3 '18 at 7:45


















  • I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.

    – jafar pinjar
    Aug 31 '18 at 17:05











  • @jafarpinjar Still default mode is same as developer. I need to enable production mode.

    – Wasiq Shahrukh
    Sep 3 '18 at 3:51






  • 1





    It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.

    – PЯINCƏ
    Sep 3 '18 at 7:45

















I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.

– jafar pinjar
Aug 31 '18 at 17:05





I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.

– jafar pinjar
Aug 31 '18 at 17:05













@jafarpinjar Still default mode is same as developer. I need to enable production mode.

– Wasiq Shahrukh
Sep 3 '18 at 3:51





@jafarpinjar Still default mode is same as developer. I need to enable production mode.

– Wasiq Shahrukh
Sep 3 '18 at 3:51




1




1





It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.

– PЯINCƏ
Sep 3 '18 at 7:45






It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.

– PЯINCƏ
Sep 3 '18 at 7:45











2 Answers
2






active

oldest

votes


















0














It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.



Try this:




  1. Remove the content of the bellow folders except the .htaccess




    • var/cache

    • var/page_cache

    • var/view_preprocessed

    • generated

    • pub/static



  2. php bin/magento setup:static-content:deploy -f


More informations in MAGENTO DEVDOCS






share|improve this answer























  • This still didn't worked for me. The 3 js files are still showing 404 in default store.

    – Wasiq Shahrukh
    Sep 3 '18 at 9:14











  • Try this : php bin/magento setup:static-content:deploy en_US -f

    – PЯINCƏ
    Sep 3 '18 at 9:19











  • Yes I have tried php bin/magento setup:static-content:deploy en_US pt_BR -f but still no change.

    – Wasiq Shahrukh
    Sep 3 '18 at 9:23











  • Your default config language is en_US ?

    – PЯINCƏ
    Sep 3 '18 at 9:36












  • No, Default store language is pt_BR and I have just updated my question.

    – Wasiq Shahrukh
    Sep 3 '18 at 9:48



















0














I have this problem too. en_GB is my default. Deploy static content for both en_US and en_GB and jquery.min & plugins.min both do not exist in pub/static.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f240444%2fmagento-2-2-some-js-files-are-not-loading-in-production-mode%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.



    Try this:




    1. Remove the content of the bellow folders except the .htaccess




      • var/cache

      • var/page_cache

      • var/view_preprocessed

      • generated

      • pub/static



    2. php bin/magento setup:static-content:deploy -f


    More informations in MAGENTO DEVDOCS






    share|improve this answer























    • This still didn't worked for me. The 3 js files are still showing 404 in default store.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:14











    • Try this : php bin/magento setup:static-content:deploy en_US -f

      – PЯINCƏ
      Sep 3 '18 at 9:19











    • Yes I have tried php bin/magento setup:static-content:deploy en_US pt_BR -f but still no change.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:23











    • Your default config language is en_US ?

      – PЯINCƏ
      Sep 3 '18 at 9:36












    • No, Default store language is pt_BR and I have just updated my question.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:48
















    0














    It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.



    Try this:




    1. Remove the content of the bellow folders except the .htaccess




      • var/cache

      • var/page_cache

      • var/view_preprocessed

      • generated

      • pub/static



    2. php bin/magento setup:static-content:deploy -f


    More informations in MAGENTO DEVDOCS






    share|improve this answer























    • This still didn't worked for me. The 3 js files are still showing 404 in default store.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:14











    • Try this : php bin/magento setup:static-content:deploy en_US -f

      – PЯINCƏ
      Sep 3 '18 at 9:19











    • Yes I have tried php bin/magento setup:static-content:deploy en_US pt_BR -f but still no change.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:23











    • Your default config language is en_US ?

      – PЯINCƏ
      Sep 3 '18 at 9:36












    • No, Default store language is pt_BR and I have just updated my question.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:48














    0












    0








    0







    It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.



    Try this:




    1. Remove the content of the bellow folders except the .htaccess




      • var/cache

      • var/page_cache

      • var/view_preprocessed

      • generated

      • pub/static



    2. php bin/magento setup:static-content:deploy -f


    More informations in MAGENTO DEVDOCS






    share|improve this answer













    It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.



    Try this:




    1. Remove the content of the bellow folders except the .htaccess




      • var/cache

      • var/page_cache

      • var/view_preprocessed

      • generated

      • pub/static



    2. php bin/magento setup:static-content:deploy -f


    More informations in MAGENTO DEVDOCS







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Sep 3 '18 at 7:54









    PЯINCƏPЯINCƏ

    8,41431145




    8,41431145












    • This still didn't worked for me. The 3 js files are still showing 404 in default store.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:14











    • Try this : php bin/magento setup:static-content:deploy en_US -f

      – PЯINCƏ
      Sep 3 '18 at 9:19











    • Yes I have tried php bin/magento setup:static-content:deploy en_US pt_BR -f but still no change.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:23











    • Your default config language is en_US ?

      – PЯINCƏ
      Sep 3 '18 at 9:36












    • No, Default store language is pt_BR and I have just updated my question.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:48


















    • This still didn't worked for me. The 3 js files are still showing 404 in default store.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:14











    • Try this : php bin/magento setup:static-content:deploy en_US -f

      – PЯINCƏ
      Sep 3 '18 at 9:19











    • Yes I have tried php bin/magento setup:static-content:deploy en_US pt_BR -f but still no change.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:23











    • Your default config language is en_US ?

      – PЯINCƏ
      Sep 3 '18 at 9:36












    • No, Default store language is pt_BR and I have just updated my question.

      – Wasiq Shahrukh
      Sep 3 '18 at 9:48

















    This still didn't worked for me. The 3 js files are still showing 404 in default store.

    – Wasiq Shahrukh
    Sep 3 '18 at 9:14





    This still didn't worked for me. The 3 js files are still showing 404 in default store.

    – Wasiq Shahrukh
    Sep 3 '18 at 9:14













    Try this : php bin/magento setup:static-content:deploy en_US -f

    – PЯINCƏ
    Sep 3 '18 at 9:19





    Try this : php bin/magento setup:static-content:deploy en_US -f

    – PЯINCƏ
    Sep 3 '18 at 9:19













    Yes I have tried php bin/magento setup:static-content:deploy en_US pt_BR -f but still no change.

    – Wasiq Shahrukh
    Sep 3 '18 at 9:23





    Yes I have tried php bin/magento setup:static-content:deploy en_US pt_BR -f but still no change.

    – Wasiq Shahrukh
    Sep 3 '18 at 9:23













    Your default config language is en_US ?

    – PЯINCƏ
    Sep 3 '18 at 9:36






    Your default config language is en_US ?

    – PЯINCƏ
    Sep 3 '18 at 9:36














    No, Default store language is pt_BR and I have just updated my question.

    – Wasiq Shahrukh
    Sep 3 '18 at 9:48






    No, Default store language is pt_BR and I have just updated my question.

    – Wasiq Shahrukh
    Sep 3 '18 at 9:48














    0














    I have this problem too. en_GB is my default. Deploy static content for both en_US and en_GB and jquery.min & plugins.min both do not exist in pub/static.






    share|improve this answer



























      0














      I have this problem too. en_GB is my default. Deploy static content for both en_US and en_GB and jquery.min & plugins.min both do not exist in pub/static.






      share|improve this answer

























        0












        0








        0







        I have this problem too. en_GB is my default. Deploy static content for both en_US and en_GB and jquery.min & plugins.min both do not exist in pub/static.






        share|improve this answer













        I have this problem too. en_GB is my default. Deploy static content for both en_US and en_GB and jquery.min & plugins.min both do not exist in pub/static.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 11 hours ago









        Chris OliverChris Oliver

        235




        235



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f240444%2fmagento-2-2-some-js-files-are-not-loading-in-production-mode%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

            How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2

            Nissan Patrol Зміст Перше покоління — 4W60 (1951-1960) | Друге покоління — 60 series (1960-1980) | Третє покоління (1980–2002) | Четверте покоління — Y60 (1987–1998) | П'яте покоління — Y61 (1997–2013) | Шосте покоління — Y62 (2010- ) | Посилання | Зноски | Навігаційне менюОфіційний український сайтТест-драйв Nissan Patrol 2010 7-го поколінняNissan PatrolКак мы тестировали Nissan Patrol 2016рвиправивши або дописавши її