digitransit-ui icon indicating copy to clipboard operation
digitransit-ui copied to clipboard

Update to NodeJS 18

Open 2martens opened this issue 2 years ago • 5 comments

If I see it correctly, Digitransit expects NodeJS 10.x. The current LTS version with support beyond 2023 is 18, however. At the very least, it should be possible to build the Dockerfile with the 18 version without errors.

For production environments, I'd rather not use an end-of-life NodeJS version. Especially, because Digitransit is the user-facing UI and not some backend service that could be better isolated.

2martens avatar Feb 20 '23 08:02 2martens

Updating the node version is a priority for us but unfortunately, due to this project being relatively old, updating node versions is not easy as there are dependencies that don't support newest node versions that we need to replace.

optionsome avatar Feb 20 '23 08:02 optionsome

v3 branch supports node 12 (and probably soon node 14)

optionsome avatar Feb 20 '23 08:02 optionsome

We are currently working on an update to node 16 at least, see https://github.com/embarkokc/digitransit-ui/pull/21

hbruch avatar Feb 20 '23 09:02 hbruch

Thanks for the info, I'll watch that update to Node 16.

2martens avatar Feb 25 '23 09:02 2martens

https://github.com/HSLdevcom/digitransit-ui/pull/4776 upgrades to Node.js v16.

derhuerst avatar Mar 25 '23 13:03 derhuerst