Node 22 upgrade results in "unexpected end of file"

Upgrading to node 22, or 18, results login scripts failing with “unexpected end of file”.

Based on this problem solution I need node 1.2.3, however that is not available in the node 22 runtimes.

What do you suggest?

Stated problem solution:

After Upgrading the Action Runtime to Node18, Getting Error "unexpected end of file" on Login

Version included in runtime.

Can I require? - Search which node modules you can use in webtask.io

Hi @esumerfield

Thank you for reaching out to us!

After you upgrade the Action to Node 22, can you please add the axios dependency on the latest version as axios@latest and test if that results in the same error message? This should automatically select the latest version which should offer the best compatibility settings for the Node version.

Let me know if this worked for you!

Have a great one,
Gerald