Magento 2 comes with a range of compilation commands which are meant to be run as part of your build step. However as there are a few different commands it's easy to forget one.

The easiest way I found is turn on/off production mode as that will run all the subcommands for you:

bin/magento deploy:mode:set developer

bin/magento deploy:mode:set production

Kristof Ringleff

Kristof Ringleff

Founder and Lead Developer at Fooman

Want to receive our monthly email with the best Magento developer tips, tricks and news? Join 7000+ other Magento developers