Angular2 QuickStart refuses to create a candidate for release

I am trying to go through quickstart for Angular2 now that there is no release candidate. However, the typescript compiler generates a lot of errors that I cannot understand.

https://angular.io/guide/quickstart

At first there are a lot of such lines. node_modules/@angular/core/src/application_ref.d.ts (39.88): TS2304 error: Unable to find the name "Promise". node_modules/@angular/core/src/application_ref.d.ts (99,42): error TS2304: the name "promise" cannot be found.

and then this ... npm ERR! Windows_NT 6.1.7601 npm ERR! (x86) \ nodejs \ node_modules \ npm \ bin \ npm-cli.js "run" ": TSK" npm ERR! node v0.12.2 npm ERR! npm v2.7.4 npm ERR! code ELIFECYCLE npm ERR! angular2 -quickstart@1.0.0 tsc: tsc npm ERR! Release Status 2 npm ERR! npm ERR! Error in angular2 -quickstart@1.0.0 tsc script 'tsc'. npm ERR! This is most likely a problem with the angular2 -quickstart package, npm ERR! not with the hour itself. npm ERR! Let the author know that this does not work on your system: npm ERR! TSC npm ERR! You can get information via: npm ERR! npm owner ls angular2 -quickstart npm ERR! There is probably an additional way out of the journal.

npm ERR! Please include the following file with any support request: npm ERR! C: \ Development \ Angular2RCQuickstart \ NPM-debug.log

Anyone who knows what is wrong?

+4
source share
1 answer

Easy dirty fix

Copy the sample folder from Angular 2 beta 17 to the @angular project so that ///<reference path="node_modules/angular2/typings/browser.d.ts"/>it works again in your top-level component

Clear Patch

You must manually set sample examples for ES6 and ES6 collections typings install es6-promiseusing the flag --ambientfor typed tsd (obsolete) titles.

+2
source

All Articles