I had the same issue
I was in PRODUCTION mode
$ php bin/magento deploy:mode:show Current application mode: production. (Note: Environment variables may override this value.)
To use THIS command
$ php bin/magento dev:source-theme:deploy
I think you should be in DEVELOPER mode
$ php bin/magento deploy:mode:show Current application mode: developer. (Note: Environment variables may override this value.)
To change YOUR LOCAL to developer mode use:
$ php bin/magento deploy:mode:set developer
Then run the commands
$ rm -rf ./generated/* ./var/view_preprocessed/* ./var/cache/* ./var/page_cache/* ./var/session/* ./pub/static/* $ php bin/magento setup:upgrade $ php bin/magento dev:source-theme:deploy $ php bin/magento cache:flush
After this, all should be working fine
OHHHHH Thank You.