voxpelli/node-connect-pg-simple

Unexpected token in node_module index.js

mbiggs2334 opened this issue · 2 comments

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?

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

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