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

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或更高版本

解决方案:

技术图片

 

文章来自:https://www.cnblogs.com/andy-lehhaxm/p/10540482.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3