ts ES5 / ES3中的异步函数或方法需要’Promise’构造函数(ts An async function or method in ES5/ES3 拾起_369 2023-05-29 153 阅读1分钟 ts ES5 / ES3中的异步函数或方法需要’Promise’构造函数(ts An async function or method in ES5/ES3 requires the ‘Promise’ constructor) 解决方法: 在tsconfig.json中配置lib // tsconfig.json { "compilerOptions": { "lib": [ "es2015" ] } }