I've encountered errors while running a typescript build in my project's node_modules folder. Despite having it excluded in the tsconfig.json file, the errors persist. What's puzzling is that another identical project doesn't throw these errors even though they share the same gulpfile.js, tsconfig.json, and node_modules setup. What else should I investigate?
Errors:
c:/Dev/streak-maker/node_modules/angular2/src/core/change_detection/parser/locals.d.ts(3,14): error TS2304: Cannot find name 'Map'.
c:/Dev/streak-maker/node_modules/angular2/src/core/render/api.d.ts(13,13): error TS2304: Cannot find name 'Map'.
...
tsconfig.js
{
"version": 3,
"compilerOptions": {
"target": "es5",
"module": "system",
...
},
"exclude": [
"node_modules",
"jspm_packages"
]
}
gulpfile.js (running the build-typescript task)
/// <binding Build='default' />
var del = require('del'),
gulp = require("gulp"),
ts = require('gulp-typescript'),
watch = require('gulp-watch');
var webproj = "./src/StreakMaker.Web/";
var webroot = webproj + "wwwroot/";
...