如何摆脱Angular2 /打字稿误差对无法找到的地图,无极目标-es5时... [英] How to get rid of Angular2 / TypeScript errors on Cannot find map, Promise ... when targeting -es5
本文介绍了如何摆脱Angular2 /打字稿误差对无法找到的地图,无极目标-es5时...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获得摆脱Angular2错误找不到地图,无极...定位时-es5
How to get rid of Angular2 errors on Cannot find map, Promise ... when targeting -es5
如果我的目标ES6错误会消失,但我必须针对ES5
if I target es6 the errors will go away, but I must target es5
我使用Intelij最新版本,但即使是纯粹的TSC将给予同样的错误...
I am using Intelij latest version, but even pure tsc will give same errors...
看原图
TX阅读
推荐答案
我通过手动添加类型的引用es6.d.td固定它
I fixed it by adding typed references manually to es6.d.td
这篇关于如何摆脱Angular2 /打字稿误差对无法找到的地图,无极目标-es5时...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文