根据此Cannot compile modules unless the '--module' flag is provided 在Visal Studio 2015中它是一个错误,但我在最后一个Visual Studio代码中,我已经创建了文件tscondif.json
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"module": "commonjs",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"out": "../../built/local/tsc.js",
"sourceMap": true
},
"files": [
"core.ts",
"sys.ts",
"types.ts",
"scanner.ts",
"parser.ts",
"utilities.ts",
"binder.ts",
"checker.ts",
"emitter.ts",
"program.ts",
"commandLineParser.ts",
"tsc.ts",
"diagnosticInformationMap.generated.ts"
]
}
但是我仍然有很多与模块编译和装饰有关的错误, 如何解决?