I'm developing .NET Core app with TypeScript + Angular 2. And I want to deploy that on Azure. When I do this, I see the following build error after Azure get code from my repository:
"VSTSC : error TS5023: Build: Unknown compiler option 'lib'. [D:\home\site\repository\AC.API\AC.API.xproj]"
My tsconfig.json
is following:
{
"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 works fine. If I remove "lib" section in tsconfig.json
I can't compile solution locally.
So, I have some questions. Can Azure compile TypeScript and execute Gulp tasks? How can I change version of TypeScript on Azure? Or how can I resolve my issue?