Magento2 – Fix Error After Grunt Clean

gruntmagento2

Magento 2

After running: grunt clean and then grunt exec:myTheme I get the following

error: >> [InvalidArgumentException]

There are no commands defined in the "dev:source-theme" namespace.
Exited with code: 1.

Warning: Task "exec:myTheme" failed. Use --force to continue.

Anyone know what this could relate to?

Best Answer

I have the same issue and I solved it by removing the 2 folders below :

  • /var/di
  • /var/generation
Related Topic