title: Angular 2 AOT moduleFactory.moduleType is undefined
body: <p>I am compiling my angular 2 project AOT. When I serve the page it outputs, I get the error <code>moduleFactory.moduleType is undefined</code>. If I replace <code>name: moduleFactory.moduleType.name</code> with <code>name: 'someRandomString'</code> in my bundle.js, everything works just fine, but I don't want to manually replace that every time I deploy; what is the cause of this error and how can I fix it?</p>