Unexpected token

Most probably you started the project as JavaScript (which is currently the default).

To start a project with TypeScript support you should use the following command:

ionic start MyApp --v2 --ts

Or if you want to convert your current project to TypeScript check out [the linked post]
(Ionic 2 not recognize typescript gramma - #3 by mhartington):