Update to NodeJS 18
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.
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.
v3 branch supports node 12 (and probably soon node 14)
We are currently working on an update to node 16 at least, see https://github.com/embarkokc/digitransit-ui/pull/21
Thanks for the info, I'll watch that update to Node 16.
https://github.com/HSLdevcom/digitransit-ui/pull/4776 upgrades to Node.js v16.