Reputation: 5426
I have just updated my Ionic 2 project to RC.0 and now have several typescript errors that I think are all related:
Q) How can I fix this, so that my code will compile?
I'm using Visual Studio Code btw.
Thanks.
Upvotes: 4
Views: 305
Reputation: 5426
Gave up and reinstalled Visual Studio Code, fixed.
Then followed these steps:
https://code.visualstudio.com/docs/languages/typescript#_using-newer-typescript-versions
What fun!
Upvotes: 1
Reputation: 1697
I would suggest making sure your typescript is all up to date. In your package.json make sure you have the most recent approve typescript update, should be :
"typescript": "2.0.3"
since you are already in you package.json take the time to make sure all other dependencies are up to date as well. cross reference with the angular.io docs to make sure.
Run an NPM install
you also want to make sure VS is up to date you can download it from Microsoft here, you will need to restart VS as well once the install is complete.
Upvotes: 1