born2net
born2net

Reputation: 24983

How to get rid of Angular2 / TypeScript errors on Cannot find map, Promise ... when targeting -es5?

How to get rid of Angular2 errors on Cannot find map, Promise ... when targeting -es5

if I target es6 the errors will go away, but I must target es5

I am using Intelij latest version, but even pure tsc will give same errors...

see image

tx for reading

enter image description here

Upvotes: 0

Views: 602

Answers (1)

born2net
born2net

Reputation: 24983

I fixed it by adding typed references manually to es6.d.td

Upvotes: 1

Related Questions