React js Error message error 0308010C digital envelope routines unsupported(Solution)

osmanforhad

Osman Forhad

Posted on January 12, 2022

React js Error message error 0308010C digital envelope routines unsupported(Solution)

basically this type of error happen from node runtime not from react js.
.
dont worry i will tell you why its happen.

at this time i am working with node js v17 which not LTS and this version is not compatible with some of webpack, and my previous Node version was v16 which is LTS. in here everything is okey. there is no any error.

If you use the current LTS version of Node.js then this error will not come.
but
.
to solve this i will not recommend you, to uninstall Node.js version 17+ and reinstall the Node.js version 16+. (This is most common solution but not exact)
but
if you wish you can do this.
.
so, what is the actual solution for
Error message error 0308010C digital envelope routines unsupported
in node v17.
trust me this is every simple and magical. please see below what it should be.

Go to In your package.json: and change this line

"start": "react-scripts start"
to

"start": "react-scripts --openssl-legacy-provider start"

you can see my screen shot, its not more than those previous 2 line.

Image description

Thank you
Happy Coding
.
osman forhad
Full-Stack Developer💻 (Mobile App & Web App)
developer.osmanforhad@gmail.com

💖 💪 🙅 🚩
osmanforhad
Osman Forhad

Posted on January 12, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related