aurelia-typescript-atom
aurelia-typescript-atom copied to clipboard
Flickr.js Uncaught ReferenceError: HttpClient is not defined
Flickr = __decorate([
aurelia_framework_1.autoinject,
__metadata('design:paramtypes', [HttpClient]) // throws an error at this line
], Flickr);
return Flickr;
Seems like the gulp-typescript compiler is doing something different from whatever TypeScript compiler Atom uses. If you build it in Atom, it works, but if you build it with gulp build-ts it doesn't set the namespace of HttpClient in the decorator metadata.
from whatever TypeScript compiler Atom uses
ntypescript : https://github.com/TypeStrong/ntypescript version : https://github.com/TypeStrong/atom-typescript/blob/master/package.json#L54