VM1908 main.js:815 TypeError: executor is not a function code example
Example: TypeError: Promise resolver undefined is not a function
// Instead of this
const promise = new Promise()
// do this
const promise = new Promise(() => {})
// Instead of this
const promise = new Promise()
// do this
const promise = new Promise(() => {})