Tsc allowNonTsExtensions unknown compiler option

I get error TS5023: Unknown compiler option 'allowNonTsExtensions' when trying to run tsc in 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 typescript@1.6.2 globally in npm .

Link to the project .

+5
source share
1 answer

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

allowNonTsExtensions is an option that is part of the compiler API , which is internal.

+2
source

Source: https://habr.com/ru/post/1236253/


All Articles