I'm confident I can resolve this issue on my own, but if sharing my solution can save someone else time, then I want to do so.
To address the error, I needed to incorporate the es6-promise
library.
The problem arose when utilizing Promise.all and encountering an issue regarding types. More details in <a href="https://stackoverflow.com/questions/43119163/typescript-error-ts2693-promise-only-refers-to-a-type-but-is-being-used-as#43122423">this discussion</a>.
Initially everything was functioning correctly, however, now I am facing an error specifically when working with a Promise from MongoDB.
Encountering an error stating: "Promise<whatever> is not assignable to Promise<any>. Property 'finally' is missing in type Promise<whatever>"
It seems that there may be compatibility issues related to the addition of a finally property on the Promise return from Mongo. This discrepancy does not exist in the version acquired from es6-promise, detailed in this es6-promise issue.
Any suggestions or solutions?