Open fdcastel opened 7 years ago
Hmm, don't know why. Seems like it's not related to promises, but the connect
function was removed? I don't remember where I copied this example from, maybe the library changed. Feel free to do a PR to correct this.
This code (from promises sample)
Is causing he following error in runtime:
Please, do notice the error occurs just in runtime. The TypeScript compiler doesn't shows any errors.
Using
TypeScript
version2.3.2
,Node.js
versionv6.10.3
andmysql2
version1.2.0
(tried to downgrade to1.1.1
but the problem remains).