1
當我按在Visual Studio代碼(編譯打字稿爲JavaScript)我得到以下錯誤CMD + SHIFT + B:沒有生成命令定義的錯誤
No build task defined. Mark a task with 'isBuildCommand' in the tasks.json file.
我tasks.json文件看起來喜歡這個。這一直在任何其他Typescript項目中都有效。
{
"version": "0.1.0",
"command": "tsc",
"isShellCommand": true,
"args": ["-w"],
"problemMatcher": "$tsc"
}
它不起作用,甚至當我添加'isBuildCommand'時,我仍然得到相同的錯誤!
{
"version": "0.1.0",
"command": "tsc",
"isBuildCommand": true,
"args": ["-w"],
"problemMatcher": "$tsc"
}
自從兩天前我有同樣的問題。我試圖建議關閉並打開文件夾...關閉和打開Visual Studio代碼...卸載和安裝Visual Studio代碼...警告消息仍然出現...和我的打字稿文件不會被轉發...這是版本1.11.2中的錯誤? (這是我的電腦安裝的版本 - Windows 8.1) – TheSoul