I am following alone with the VS Code typescript config.
https://code.visualstudio.com/Docs/languages/typescript
I have setup my tsconfig.json like
{
"compilerOptions": {
"module": "system",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"outFile": "built/local/tsc.js",
"sourceMap": true
},
"include": [
"**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
and my task runner
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "tsc",
"isShellCommand": true,
"args": ["-p", "."],
"showOutput": "always",
"problemMatcher": "$tsc"
}
My ts codes
class StartUp {
public static main(): number {
console.log('Helle Workd');
return 5;
}
}
console.log('test');
StartUp.main();
For some reason, I don't see any output in the output window when I press cmd + shift + B (build). I do see errors like
hello.ts(8,1): error TS2304: Cannot find name 'ddd'.
if I add randomly add ddd string in the codes.
Can someone help me to solve this issue? Thanks so much!