How to fix NodeJS argon2 crash

My NodeJS app using the argon2 library crashed within my docker container (the process just exited without an error message) every time I used argon2 funtions, even though it worked fine on my Desktop.

This error occured with argon2==0.30.3I fixed it by downgrading it to 0.26.2 using the following statement in package.json:

"argon2": "^0.26.2",

With the correct version installed (don’t forget to npm install after changing package.json), the issue disappeared entirely. I did not try any other versions of argon2.