tsc unknown compiler option allowNonTsExtensions

prolink007 picture prolink007 · Nov 18, 2015 · Viewed 7.1k times · Source

I am getting error TS5023: Unknown compiler option 'allowNonTsExtensions' when trying to run tsc on a project.

Here is my tsconfig.json file.

{
  "compilerOptions": {
    "target": "ES5",
    "allowNonTsExtensions": true,
    "module": "commonjs",
    "sourceMap": true,
    "isolatedModules": true,
    "noEmitOnError": false,
    "rootDir": ".",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true
  },
  "compileOnSave": false
}

Using [email protected] globally in npm.

Link to the project being used.

Answer

Martin Vseticka picture Martin Vseticka · Nov 18, 2015

The option is not defined for tsconfig.json. You can check it in wiki or in the source code:

allowNonTsExtensions is an option that is a part of compiler API that is internal.