I recently started working on a new ASP.Net Core project and decided to integrate Angular 2 and Type Script by following a blog post tutorial. However, upon adding a Type Script file to my project, I encountered several build errors from the xproj file.
https://i.sstatic.net/6ZbRq.png
Reviewing my project.json, package.json, systemjs.config.js files along with the lone Type Script file in the project, it seems like something might be amiss.
project.json
{
"title": "Manage Care Web",
"userSecretsId": "ManageCare-Apps-Web-c23d27a4-eb88-4b18-9b77-2a93f3b15119",
"dependencies": {
// list of dependencies...
},
"tools": {
// list of tools...
},
"frameworks": {
// framework configurations...
},
// Build options, runtime options, etc.
}
// more code snippets...
package.json
{
"version": "1.0.0",
"name": "managecare",
"private": true,
"scripts": {
// script commands...
},
"dependencies": {
// list of dependencies...
},
"devDependencies": {
// list of dev dependencies...
}
}
// more code snippets...
systemjs.config.js
{
// System configuration for Angular samples...
}
// detailed mapping of angular bundles...
typings.config
{
// global dependencies definition...
}
// further typings configuration...
tsconfig.json
{
// compiler options and exclude configuration...
}
ClientApp.ts
{
// import declarations...
}
Despite following the provided instructions, it seems there might be more to configuring Type Script than initially thought. Is there anything obvious that could have been missed or requires additional attention?
Update:
After installing the typings npm package as suggested by a user, attempting
typings install dt~core-js --global --save
, resulted in an unexpected exception being thrown.
// Exception message...