Wednesday, 3 May 2017

Why npm module mysql does not work when you attempt call function 'connect()' in other file's .js

I am call require('mysql') and if call function connect() to everything works, but if call function 'connect()' in other file to throw error connection.connect is not a function... how to solve this problem without plugging in another file module?



via ratatyq

No comments:

Post a Comment