voxpelli / node-connect-pg-simple

A simple, minimal PostgreSQL session store for Express
https://www.npmjs.com/package/connect-pg-simple
MIT License
234 stars 74 forks source link

Unexpected token in node_module index.js #274

Closed mbiggs2334 closed 1 year ago

mbiggs2334 commented 1 year ago
node_modules/connect-pg-simple/index.js:235
    #getPruneDelay () {
                   ^

SyntaxError: Unexpected token '('

Getting the above error when trying to use the code below. const pgSession = require('connect-pg-simple')(session);

Any way to solve this?

voxpelli commented 1 year ago

Which version of node.js? It works in the tests?

mbiggs2334 commented 1 year ago

Yup, my mistake, Using an older version of Node. All good now. Thank you for the help.