TypeError: обещание Resolver Не определено не является функцией

// Instead of this
const promise = new Promise()

// do this
const promise = new Promise(() => {})  
Frightened Flatworm