Using async breaks the build

I’m trying to use async in my main.ts file for perform a sql call in response to an ipc- however when i run npm start i receive the error;

main.ts(46,35): error TS2705: An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your –lib option.

Google suggests I add lib [“es2015”] to the tsconfig.json, but I notice the lib seciton already includes this;

"lib": [ "es2017", "es2016", "es2015", "dom" ]

Is there something wrong here, or am I missing something?

1 possible answer(s) on “Using async breaks the build