I am trying to compile TypeScript & NodeJS an getting this error any help?
tsc --version => Version 2.7.2
error TS5023: Unknown compiler option 'lib'.
error TS5023: Unknown compiler option 'strict'.
error TS5023: Unknown compiler option 'esModuleInterop'.
The terminal process terminated with exit code: 1
Updated, added tsconfig.json
{
"compilerOptions": {
"target": "ES5",
"module": "commonjs",
"lib": ["es2015"],
"sourceMap": true,
"strict": true,
"esModuleInterop": true,
"mapRoot": "./map"
}
}
I have found my mistake forget to call local version of TypeScript ./node_modules/.bin/tsc --init
npm install --save-dev [email protected] fixed it at my side.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With