Magento 2.2 some JS files are not loading in production mode The 2019 Stack Overflow Developer Survey Results Are InOverride 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

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

Dropping list elements from nested list after evaluation

Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?

Can you cast a spell on someone in the Ethereal Plane, if you are on the Material Plane and have the True Seeing spell active?

Kerning for subscripts of sigma?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

How to type this arrow in math mode?

A female thief is not sold to make restitution -- so what happens instead?

How do PCB vias affect signal quality?

What do I do when my TA workload is more than expected?

Why can I use a list index as an indexing variable in a for loop?

Why not take a picture of a closer black hole?

How to charge AirPods to keep battery healthy?

What do these terms in Caesar's Gallic Wars mean?

How to translate "being like"?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

Button changing its text & action. Good or terrible?

Geography at the pixel level

If climate change impact can be observed in nature, has that had any effect on rural, i.e. farming community, perception of the scientific consensus?

Keeping a retro style to sci-fi spaceships?

How much of the clove should I use when using big garlic heads?

Worn-tile Scrabble

Why doesn't UInt have a toDouble()?

Likelihood that a superbug or lethal virus could come from a landfill



Magento 2.2 some JS files are not loading in production mode



The 2019 Stack Overflow Developer Survey Results Are InOverride 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,42931147




    8,42931147












    • 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 Apr 8 at 14:05









        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

            Sum ergo cogito? 1 nng

            419 nièngy_Soadمي 19bal1.5o_g

            Queiggey Chernihivv 9NnOo i Zw X QqKk LpB