【发布时间】:2017-02-12 22:37:51
【问题描述】:
我正在为 Angular 2 应用程序使用 VS 代码。在我尝试编译为 JS 时对我的 ts 文件进行编码后,它不会发生。未创建 JS 文件。我在 Ctrl+Shift+B 上没有错误。这可能是什么原因造成的?
PS:tasks.json和launch.json中的配置我已经完成了。
如果我在 CMD 提示符下运行 npm start,它可以正常工作。
这是我的tasks.json:
{
// 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": [],
"showOutput": "silent",
"problemMatcher": "$tsc"
}
【问题讨论】:
标签: angular typescript visual-studio-code tsc