I am developing a .NET Core application with TypeScript + Angular 2. And I want to deploy this on Azure. When I do this, I see the following build error after Azure receives the code from my repository:
"VSTSC: error TS5023: assembly: unknown compiler option 'lib'. [D: \ home \ site \ repository \ AC.API \ AC.API.xproj]"
My tsconfig.jsonnext one:
{
"compileOnSave": true,
"compilerOptions": {
"noImplicitAny": true,
"noEmitOnError": true,
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "commonjs",
"moduleResolution": "node",
"removeComments": false,
"target": "es5",
"lib": [
"es2015",
"es5",
"dom"
]
},
"include": [
"app/**/*.ts"
]
}
Locally, everything is working fine. If I delete the lib section in tsconfig.json, I cannot compile the solution locally.
So, I have some questions. Can Azure compile TypeScript and perform Gulp tasks? How to change version of TypeScript on Azure? Or how can I solve my problem?