aurelia-typescript-atom icon indicating copy to clipboard operation
aurelia-typescript-atom copied to clipboard

Flickr.js Uncaught ReferenceError: HttpClient is not defined

Open nadeembs opened this issue 10 years ago • 2 comments

Flickr = __decorate([
            aurelia_framework_1.autoinject, 
            __metadata('design:paramtypes', [HttpClient]) // throws an error at this line
        ], Flickr);
        return Flickr;

nadeembs avatar Jul 04 '15 17:07 nadeembs

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.

SteveRuble avatar Jul 12 '15 17:07 SteveRuble

from whatever TypeScript compiler Atom uses

ntypescript : https://github.com/TypeStrong/ntypescript version : https://github.com/TypeStrong/atom-typescript/blob/master/package.json#L54

basarat avatar Jul 13 '15 02:07 basarat