2
手動存在vscode typescript編譯任務:http://code.visualstudio.com/docs/languages/typescript#_transpiling-typescript-into-javascript。Visual 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
}
}
確實幫助。但是,連接是什麼?缺少TSC? – vasilyk