If you see the errorAppModule is not an NgModule when using the Angular CLI, then the solution is most likely to rollback your typescript version:
npm install typescript@2.0.3

Version 2.0.10 should also work.