- I am copying a current site (working) to new site for demo.
- After running “composer install” and setup permission, I run:
php bin/magento setup:static-content:deploy -
This error is shown:
[BadMethodCallException] Missing required argument $sources of MagentoDeploySourceSourcePool.
Anyone know what is problem? Please help. Many thanks!
3
Answers
In Magento 2 first you need to compile the app so it generates core classes.
You need to run
php bin/magento setup:di:compile
before running
php bin/magento setup:static-content:deploy
Also when running setup:static-content:deploy make sure that your magento setup is in developer mode.
Hey I got the same error
I tried running
it given error as
run
Change operation mode to developer mode
Then run below commands: