码迷,mamicode.com
首页 > 其他好文 > 详细

ts问题处理(2): 'Promise' only refers to a type, but is being used as a value here.

时间:2019-03-16 09:50:07      阅读:2939      评论:0      收藏:0      [点我收藏+]

标签:问题处理   Nging   nbsp   use   info   翻译   nss   问题   hang   

error TS2585: ‘Promise‘ only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.

软件翻译后:  Promise仅指类型,但在这里用作值。是否需要更改目标库?尝试将“lib”编译器选项更改为es2015或更高版本

解决方案:

技术图片

 

ts问题处理(2): 'Promise' only refers to a type, but is being used as a value here.

标签:问题处理   Nging   nbsp   use   info   翻译   nss   问题   hang   

原文地址:https://www.cnblogs.com/andy-lehhaxm/p/10540482.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!