Skip to content
JS
TypeScript error

TS2705

An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or...

Reference entryTypeScriptFetched
An async function or method in ES5 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.
As listed by TypeScript diagnosticMessages.json

{0}, {1} and so on are filled in by the compiler.

Category
Error
Severity
error
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: TypeScript diagnosticMessages.json. Data fetched 2026-09-25T01:43:12.673Z.