2

Whenever I run upgrade command in Magento 2, some of my CSS and JS and Images files deleted automatically, sometimes deleted from third party modules, and sometimes deleted from magento vendor folder.

Please guide me!

  • which mode you are using ? – Pawan Dec 3 '19 at 4:04
  • development mode – temper Dec 3 '19 at 4:04
  • if it developer mode, CSS and JS should automatic created. – Pawan Dec 3 '19 at 4:08
  • Yes, but I am talking about Core files, like from any of my module some css and js deleted automatically and sometimes deleted from vendor folder – temper Dec 3 '19 at 4:09
  • when you run upgrade, you can see the output, it will clean in generated, var, pub. It won't do any thing with file in vendor or 3rd modules – Hoangnm Dec 3 '19 at 5:00
1

It was the issue in my third party module, after disable the modules, and running commands, my issue was fixed. The commands which I run after disabling module was:

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.