opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v19.5.0
i am getting this error in my nextjs project.
i don't want to downgrade my nodejs software version. Is there any other solution ?
You are likely getting this error because you're using, (or one of the dependent packages is using)
Webpack
with a version of less than 5.To check this run to check the Webpack version:
npm:
or yarn
An example output could be. In this example I have Webpack 5 installed. But one of the dependency packages I'm using still has a reference to Webpack 4.
The solution is to update the dependency package to the latest one that uses Webpack 5. If the dependency package's latest still using Webpack 4, then you might need to use install Node 16 instead.