SnowdogApps / magento2-theme-blank-sass

SASS based version of Magento 2 Blank theme
MIT License
383 stars 150 forks source link

Js minification not working in production mode after installing the theme #246

Closed thangasujithas closed 3 years ago

thangasujithas commented 3 years ago

I have magento 2.4.2 site. And using the snowdog blank theme as parent theme. In this after I set the production mode none of the js are not working. Could you please help me to fix it

Igloczek commented 3 years ago

We need a step by step scenario to reproduce your issue and a detailed description of what is actually broken and the reason why you think it's broken.

thangasujithas commented 3 years ago
  1. My site is already running on a magento version 2.3.5 and I have integrated snowdog theme.
  2. Recently I upgraded magento to latest version Magento 2.4.2. After completed the upgrade. I changed the mode from developer to production.
  3. After that each page showing different js error like below [ showing 404 error] 1.http://www.example.com/static/frontend/test/test1/en_GB/mageTranslationDictionary.min.js 2.http://www.example.com/statictest/frontend/test1//the-grooming-clinic/en_GB/priceBox.min.js
    1. http://www.example.com/static/frontend/test/test1/en_GB/text.min.js Just like above most of the js files are showing 404 error. So all js functions are not working[add to cart, scrolling .etc]
Igloczek commented 3 years ago

Did you check if the files generated during the mode switching and exist on the disc in the pub/static/frontend directory? None of the files you are mentioning is coming out of this theme, all of them are inherited from Magento core, so most likely it's a configuration error, or you forgot to run some required tools.

CoutoDev commented 3 years ago
  1. My site is already running on a magento version 2.3.5 and I have integrated snowdog theme.
  2. Recently I upgraded magento to latest version Magento 2.4.2. After completed the upgrade. I changed the mode from developer to production.
  3. After that each page showing different js error like below [ showing 404 error] 1.http://www.example.com/static/frontend/test/test1/en_GB/mageTranslationDictionary.min.js 2.http://www.example.com/statictest/frontend/test1//the-grooming-clinic/en_GB/priceBox.min.js
    1. http://www.example.com/static/frontend/test/test1/en_GB/text.min.js Just like above most of the js files are showing 404 error. So all js functions are not working[add to cart, scrolling .etc]

Did you update the theme? The 1.5 version seems to work well on Magento 2.4

Igloczek commented 3 years ago

Closing due to inactivity.