I have recently upgraded the version of TypeScript from 2.3.4 to 2.4.0 hoping to use the string enums. To my dismay, however, I have been greeted with the error messages:
If you are like me, using VS but not in project (just opening a folder), then I just had to install the latest version of TS for VS:
https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.typescript-27-vs2017