0
我正在为Angular 2应用程序使用VS代码。编写我的ts文件后,当我尝试编译到JS它不会发生。 JS文件没有被创建。我在上没有错误Ctrl + Shift + B。什么可能导致这个?Ctrl + Shift + B不在Visual Studio代码中编译打印稿代码
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"
}