I have a google cloud function using this code and it gives the error TypeError: pg.Pool is not a constructor at exports.postgresDemo I have
{
"dependencies": {
"pg": "^2.0.5"
}
}
as the dependencies. I don't know if the error is in node or cloud functions