My Angular 2 project was running smoothly on version 2.3, but I decided to upgrade to version 2.4. To do so, I downloaded the latest quickstart files from https://github.com/angular/quickstart
After replacing my tsconfig.json, package.json, and systemjs.config.js files with those from the quickstart project, I started encountering multiple instances of the following errors:
Build: Cannot find name 'Set'
Build: Cannot find name 'Promise'
Build: Cannot find name 'Map'
Why are these errors occurring when using the tsconfig.json, package.json, and systemjs.config.js files from the newest Quickstart project?
I initially upgraded TypeScript to 2.1.4, but reverted back to 2.0.3 thinking it might be causing the issue. Could this downgrade potentially be the problem?
I anticipate suggestions to modify code in one or more of these files, but shouldn't they work seamlessly out of the box?
Attached are the pertinent files...
tsconfig.json:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true
}
}
package.json:
{
// Contents of package.json
}
systemjs.config.js:
(function (global) {
System.config({
// Configuration details for SystemJS
});
})(this);
EDIT: Reverting to original files resolved the errors. However, creating a new project with the same Quickstart files triggered the errors once more. This indicates that the issue is not related to my code. Are there known problems with the 2.4 release? Have others successfully run projects on version 2.4?
UPDATE: My development setup involves Visual Studio 2015 on Windows 10.