Przy budowie maszynopis w VSCode, pojawia się następujący błąd:Tylko są obsługiwane 'AMD i moduły 'system' obok --out
error TS6082: Only 'amd' and 'system' modules are supported alongside --out.
Kim są następujące ustawienia:
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"
}
Mimo błędu plik game.js został utworzony i działa poprawnie.
Ktoś myśli o tym, co może spowodować ten błąd?
Po prostu wpadłem na ten błąd i przeszukałem wyszukiwarkę Google, aby znaleźć rozwiązanie. Cieszyłem się, że ktoś o to zapytał. Lo i oto, to ja to zapytałem! Dziękuję sobie! – OCDev