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

Property "replaceAll" does not exist on type "string". #291

Closed akashdeep931 closed 1 year ago

akashdeep931 commented 1 year ago

Having the following type error when deploying my node app on render:

issue 1

The error is on the index.js file, you can see it in the following screenshot:

issue 2
voxpelli commented 1 year ago

@akashdeep931 Version 9.x requires at least Node 16.x, seems like you are running an older version of Node. You should update as Node 14 and older are no longer receiving security updates.

voxpelli commented 1 year ago

@akashdeep931 In regards to types, be sure to include es2021 or later in your TS lib, see eg: https://github.com/voxpelli/tsconfig/blob/ce084294e9ecf2f9497fc74bc09404a9315bfc05/node16.json#L8

akashdeep931 commented 1 year ago

Thank @voxpelli, in my machine it worked perfectly, however render was using an older version of node. I am now using Railway.app for hosting and all is working well.

voxpelli commented 1 year ago

@akashdeep931 Great to hear!