Question: error promise resolver undefined is not a function?
Answer: The promise executor is a function accepting two other functions: resolve and reject . If you're running into the “Promise resolver undefined is not a function” error, your code may look like this new Promise() instead of new Promise((resolve, reject) => { … }) .