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!

14
  • which mode you are using ? Commented Dec 3, 2019 at 4:04
  • development mode Commented Dec 3, 2019 at 4:04
  • if it developer mode, CSS and JS should automatic created. Commented Dec 3, 2019 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 Commented Dec 3, 2019 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 Commented Dec 3, 2019 at 5:00

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.