Webpack build failing with ERR_OSSL_EVP_UNSUPPORTED [duplicate]

I was able to fix it via:

export NODE_OPTIONS=--openssl-legacy-provider

sachaw’s comment to Node.js v17.0.0 – Error starting project in development mode #30078

But they say they fixed it: ijjk’s comment to Node.js v17.0.0 – Error starting project in development mode #30078:

Hi, this has been updated in v11.1.3-canary.89 of Next.js, please update and give it a try!

For me, it worked only with the annotation above.

I also want to point out that npm run start works with -openssl-legacy-provider, but npm run dev won’t.

It seems that there is a patch:
Node.js 17: digital envelope routines::unsupported #14532

I personally downgraded to 16-alpine.

Leave a Comment