I am trying to add angular5 to .net mvc web api . I have searched over and found some answers but that doesn't work for me . Following steps i followed :
- I cloned latest version from github of angular5 on my desktop.
- Then i created a new project in visual studio 2015 selecting mvc and webapi.
- Then i copied package.json to root directory of newly created project in vs 2015.
- I then by right clicking on package.json navigate to restore packages and it is supposed to add node_modules to root directory and it added that.
- Then i copied tsconfig.app , main.ts and app folder to root directory and by clicking on it included it in.
However after following all these steps i ran for build but i got error as "tsc : error TS5023: Build:Unknown compiler option 'lib'"
My tsc file is below ::
{
"compilerOptions":
{
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true
}
}
Any help will be highly appreciated as i am stucked in this for a long time .
UPDATED 02 FEB 2018 Hello now i have solved the issue .. it is running now but it is unable to load my angular component. On browser console i can see the following errors: screenshot of the error screen