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

Can we apply L'Hospital's rule where the derivative is not continuous?

On the insanity of kings as an argument against Monarchy

How can I fix this gap between bookcases I made?

Realistic Alternatives to Dust: What Else Could Feed a Plankton Bloom?

Could JWST stay at L2 "forever"?

Access elements in std::string where positon of string is greater than its size

Can't find the latex code for the ⍎ (down tack jot) symbol

Where to refill my bottle in India?

Limit the amount of RAM Mathematica may access?

Idiomatic way to prevent slicing?

Unbreakable Formation vs. Cry of the Carnarium

Dual Citizen. Exited the US on Italian passport recently

What does "sndry explns" mean in one of the Hitchhiker's guide books?

Springs with some finite mass

Why can Shazam do this?

Deadlock Graph and Interpretation, solution to avoid

How to deal with fear of taking dependencies

I looked up a future colleague on linkedin before I started a job. I told my colleague about it and he seemed surprised. Should I apologize?

What do hard-Brexiteers want with respect to the Irish border?

How to create dashed lines/arrows in Illustrator

The difference between dialogue marks

Evaluating number of iteration with a certain map with While

Does light intensity oscillate really fast since it is a wave?

What is a mixture ratio of propellant?



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,41431146




    8,41431146












    • 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 yesterday









        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

            Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

            Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

            Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림