Skip to content

Conversation

@b-u-g-g
Copy link

@b-u-g-g b-u-g-g commented Sep 18, 2025

Pull Request: Fix Create React App v4 + Node.js 17+/20 error

Problem

Running the project with Node.js 17 or higher caused the following error:

Error: error:0308010C:digital envelope routines::unsupported

This is due to react-scripts@4.0.3 (Webpack 4) using legacy crypto algorithms that are blocked in OpenSSL 3, which ships with Node 17+.

Fix

Added the --openssl-legacy-provider flag to the start and build scripts in package.json to allow legacy crypto providers and restore compatibility with Node.js 17–20.

Changes

   "scripts": {
-    "start": "react-scripts start",
-    "build": "react-scripts build",
+    "start": "react-scripts start --openssl-legacy-provider",
+    "build": "react-scripts build --openssl-legacy-provider",
     "test": "react-scripts test",
     "eject": "react-scripts eject"
   },

Also made some ui changes
Screenshot 2025-09-18 212343

@netlify
Copy link

netlify bot commented Sep 18, 2025

Deploy Preview for taskify-typescript failed.

Name Link
🔨 Latest commit 2d775ea
🔍 Latest deploy log https://app.netlify.com/projects/taskify-typescript/deploys/68cc2ccfd60f0c0008453358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant