In typescript, I get build error saying 'Build:'Promise' only refers to a type, but is being used as a value here.'.
My project target is 'ES5'. From this thread, I can resolve the issue by changing it to ES6. Is there a way to resolve the issue without changing my target?
typescript: error TS2693: 'Promise' only refers to a type, but is being used as a value here
Thank you.