I created a new project using the gulp-angular Yeoman generator with language set to TypeScript. Then ran the Gulp build process and also opened the page in a web browser, w
Adding a tsconfig.json
to the root of my VS Code project is what fixed the issue for me. Also, had to restart VS code. Here is what I put inside that file:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"sourceMap": true
}
}
For more info on the tsconfig.json
file, check out:
https://code.visualstudio.com/docs/languages/typescript