小编Mat*_*att的帖子

运行构建任务/ TSC中的VSCode路径生成失败:构建

我正在通过https://code.visualstudio.com/docs/languages/typescript上的Typescript简介进行工作

当我尝试Run Build Task选择时tsc: build,VSCode尝试以下操作:

Executing task: tsc -p c:\work\JavascriptTypescript\test-apr-2018\tsconfig.json <

error TS5058: The specified path does not exist: 'c:workJavascriptTypescripttest-apr-2018tsconfig.json'.
The terminal process terminated with exit code: 1
Run Code Online (Sandbox Code Playgroud)

它试图使用tsconfig.json文件的完整路径,然后从该路径中删除斜杠。显然,这将找不到正确的文件。

如果我tsc -p tsconfig.json从命令行手动发出,则tsc可以正常工作。

这似乎是VSCode配置错误,但我是VSCode的新手,也不知道如何解决它。

typescript visual-studio-code

1
推荐指数
3
解决办法
1963
查看次数

标签 统计

typescript ×1

visual-studio-code ×1