-
Notifications
You must be signed in to change notification settings - Fork 2.5k
TypeError: Object #<Pool> has no method 'on' #533
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
Comments
I'm with the 2.0.0-alpha8 version and keeps with this issue |
Having the same issue with 2.0.0.-alpha8, i have opened another issue for the same with the code I am using. |
There is no "on" method in the documentation for 2.0.0-alpha8 version: To use this method you need to download master branch of node-mysql. |
When using master branch there is no error "TypeError: Object # has no method 'on'", but event is never called. |
Note, per #599, the callback only has one parameter the connection.
Also note, there is a test for this event in master you can reference if it is still an issue. https://github.com/felixge/node-mysql/blob/master/test/integration/pool/test-connection-event.js |
This issue can be closed. The reason you are getting the error is because you are not using at least |
Feel free to reopen, if your problem still exists. |
In the documentation on the main page there is a block that reads as follows:
However when I run this code I receive the following error:
TypeError: Object # has no method 'on'
The text was updated successfully, but these errors were encountered: