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