Error on Ionic serve --lab


#1

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?


#2

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


#3

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?


#4

Reinstalled everything and it fixed it.