Unknown compiler options include & exclude

The issue is because they do not belong in compiler options at all.

They should exist along-side compiler options like so:

{
  "compilerOptions": {
    "target": "es6",
    "module": "commonjs", 
    "strict": true,
    "baseUrl": "./",
    "outDir": "./build",
    "sourceMap": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "importHelpers": true,
    "types": [
      "node"
    ],
    "typeRoots": [
        "node_modules/@types"
    ]
  },
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "node_modues"
  ]
}

See the examples here: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#examples


According to the handbook, include and exclude are supposed to be siblings of compilerOptions, not children:

{
  "compilerOptions": {
    "target": "es6",
    "module": "commonjs", 
    "strict": true,
    "baseUrl": "./",
    "outDir": "./build",
    "sourceMap": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "importHelpers": true,
    "types": [
      "node"
    ],
    "typeRoots": [
        "node_modules/@types"
    ]
  },
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "node_modues"
  ]
}