2017-01-23 95 views
2

手動存在vscode typescript編譯任務:http://code.visualstudio.com/docs/languages/typescript#_transpiling-typescript-into-javascriptVisual Studio代碼Typescript任務編譯 - 輸出編碼

運行版本(按Ctrl + Shift + B)vscode顯示TSC一些未知編碼後,看到屏幕: http://prnt.sc/dz60uu

任何想法?

tsconfig.json:

{ 
    "files": [ 
    ], 
    "include": [ 
     "src/**/*.ts" 
    ], 
    "exclude": [ 
     "node_modules", 
     "**/*.spec.ts" 
    ], 
    "compilerOptions": { 
     "noImplicitAny": true, 
     "target": "es5", 
     "module":"commonjs", 
     "removeComments": true, 
     "preserveConstEnums": true, 
     "out": "dist/index.js", 
     "sourceMap": true 
    } 
} 

回答

2

此命令固定編碼的問題:

npm install -g typescript 
+0

確實幫助。但是,連接是什麼?缺少TSC? – vasilyk