Unexpected token in node_module index.js
mbiggs2334 opened this issue · 2 comments
mbiggs2334 commented
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
Which version of node.js? It works in the tests?
mbiggs2334 commented
Yup, my mistake, Using an older version of Node. All good now. Thank you for the help.