I have inherited an angular 1 project written in typescript version 1.8.10.
However, I am encountering compilation issues with the following error message:
Unknown compiler option 'lib'
If I remove the "lib" line, a cascade of other errors such as:
Property 'X' does not exist on type 'Y'
This project is quite complex and old, but I only need it to work for the next 2 weeks. Unfortunately, rewriting the whole project from scratch is not feasible given the time constraints.
I have attempted various versions of TypeScript, but the same issue persists. I also tried building with the --noImplicitUseStrict flag, but to no avail.
Below are excerpts from my tsconfig.json and package.json files:
tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noImplicitUseStrict" : true,
"lib": ["es2015", "dom"]
},
"exclude": [
"bower_components",
"node_modules",
"typings"
]
}
{
"name": "xxx",
"version": "0.0.0",
// Dependencies and scripts truncated for brevity
}
I would really appreciate any guidance or advice on how to resolve this issue. The project is being built using Gulp.