datenanfragen / website

The Datenanfragen.de website including the request PDF generator and company information database
https://www.datenanfragen.de
MIT License
93 stars 125 forks source link

Compatibility with recent node versions #986

Open mal-tee opened 1 year ago

mal-tee commented 1 year ago

As even Ubuntu comes with Node.JS 18 nowadays we should fix our build process for versions >=14.

davenewham commented 1 year ago

End of life for Node 14 is 2023-04-30, with Node 18 being the current LTS.

mal-tee commented 1 year ago

The main problem is that new node versions ship a fixed OpenSSL version that's not compatible with webpack4. The very dirty hotfix is export NODE_OPTIONS=--openssl-legacy-provider;, but I haven't attempted that yet. In theory it is possible to configure a different hashFunction via webpack options. But with "sha256", I run into weird undefined errors with babel down the line. (Although that could be completely unrelated).

https://github.com/webpack/webpack/issues/14532

The non-hacky way to proceed is upgrading to webpack 5.

baltpeter commented 1 year ago

The non-hacky way to proceed is upgrading to webpack 5.

Instead of investing effort into that, I would much rather recommend switching to Hugo for the JS build as well.

mal-tee commented 1 year ago

Sure!

christian-weiss commented 10 months ago

Node 18 is LTS but is our of "Active Support", now in "Security Support". Latest LTS is Node 20 (10 month "Active Support" remaining, 2 years and 4 month "Security Support" remaining)

Node 20 LTS should be our target now (after getting rid of webpack, by migration to hugo)