【发布时间】:2016-06-28 01:31:12
【问题描述】:
在 VSCode 中构建 typescript 时,出现以下错误:
错误 TS6082:仅支持“amd”和“system”模块 --out.
我的设置如下:
tsconfig.json
{
"compilerOptions": {
"target": "ES5",
"module": "commonjs",
"out": "current/game.js",
"removeComments": true,
"sourceMap": false
}
}
.vscode/tasks.json:
{
"version": "0.1.0",
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript
"command": "tsc",
// The command is a shell script
"isShellCommand": true,
// Show the output window only if unrecognized errors occur.
"showOutput": "silent",
// args is the HelloWorld program to compile.
"args": [],
// use the standard tsc problem matcher to find compile problems
// in the output.
"problemMatcher": "$tsc"
}
尽管出现错误,game.js 文件确实已创建并正常运行。
有人对可能导致此错误的原因有任何想法吗?
【问题讨论】:
-
我刚刚遇到了这个错误并执行了谷歌搜索以找到解决方案,我很高兴看到其他人提出了这个问题。瞧,是我问的!谢谢你自己!
-
当你在 Google 上搜索并找到你自己的 StackOverflow 答案时,圆圈就完成了????
标签: typescript visual-studio-code phaser-framework