Error on Ionic serve --lab


When attempting to build my Ionic 2 project i get this error when attempting to serve it

Unexpected token (9:17) while parsing file: Mypath\app\app.js

Anyone know how to fix this?


I don’t know…what’s on line 9 column 17 in app.js? That would probably be, at least, a clue.:mag:


I also get this error with this code:

constructor(isActive: boolean){
this.isActive = isActive;

It doens’t like the :

You had the same problem and got it solved already?


Reinstalled everything and it fixed it.