Typescript: Unbekannte Compileroption 'ausschließen'

Erstellt am 26. Mai 2017  ·  4Kommentare  ·  Quelle: microsoft/TypeScript



TypeScript-Version: 2.2.3

Code

$ tsc
// tsconfig.json
{
  "compilerOptions": {
    "declaration": true,
    "target": "es5",
    "module": "commonjs",
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false,
    "outDir": "dist",
    "typeRoots": [
      "./node_modules/@types/"
    ],
    "exclude": [
      "dist"
    ]
  }
}

Erwartetes Verhalten:
Schließen Sie die Liste der angegebenen Pfade aus.

Tatsächliches Verhalten:
Wirft einen Fehler: error TS5023: Unknown compiler option 'exclude'

Letzte Anmerkung
Dies tritt auch bei Verwendung der Optionen include oder files . Wurden diese Optionen in einem kürzlich durchgeführten Update von Typoskript abgeschrieben? Ich kann keine Dokumentation finden, die dies vorschlägt ...

Question

Hilfreichster Kommentar

Tatsächlich sind files , include usw. Felder der obersten Ebene

{
  "compilerOptions": {},
  "exclude": []
}

Alle 4 Kommentare

Tatsächlich sind files , include usw. Felder der obersten Ebene

{
  "compilerOptions": {},
  "exclude": []
}

@ikatyang danke - kann nicht glauben, dass ich das verpasst habe 🙄

{
"compilerOptions": {
"Erklärung": wahr,
"Ziel": "es5",
"module": "commonjs",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentelleDekoratoren": wahr,
"removeComments": false,
"noImplicitAny": false,
"outDir": "dist",
"typeRoots": [
"./node_modules/@types/"
]]
},
"ausschließen": [
"dist"
]]
}}

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen