-
-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type error in v3.1.0 #1816
Comments
I too am experiencing this issue. The root cause appears to be the fact that
My Temporary Workaround (Solution):
|
I originally experienced a similar issue with 3.0.0 and like @fated-x I reverted, to the 2.2.5 I was using in my case. I just tried 3.2.0 and it's compiling without errors and making connections without apparent trouble. However, I'm using mysql.createPool() not mysql.createConnection() |
Im using
import { createConnection, Connection } from 'mysql2';
import { config } from '@src/config';
export const db: Connection = createConnection(config.db);
db.promise(); // <---- error |
I'm still getting this issue on 3.3.0 |
Look at this fix: This PR changes are relatively extensive (especially the automated tests to prevent new changes from breaking the typings again), so this review cannot be rushed 🙋🏻♂️ |
This comment was marked as outdated.
This comment was marked as outdated.
After version
I'm closing this Issue, but feel free to ask anything 🙋🏻♂️ |
I couldn't find connection.promise()
The text was updated successfully, but these errors were encountered: