LinkedInLearning / react-design-patterns-2895130

React: Design Patterns
Other
370 stars 448 forks source link

Project not running please update your package.json to fix ssl issues #4

Open jessewriter opened 2 years ago

jessewriter commented 2 years ago

Issue Overview

On Fedora Linux with updated SSL these projects will not start but can be simply fixed by updating package.json

Describe your environment

Fedora 36

Steps to Reproduce

  1. npm start
  2. app fails to start because of security issues

Expected Behavior

expect project to run

Current Behavior

projects will not start /React Training/react-design-patterns-2895130/node_modules/babel-loader/lib/index.js:59:103 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' } at /home/developer/Documents/React Training/react-design-patterns-2895130/node_modules/babel-loader/lib/index.js:59:103 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' }

Possible Solution

"dependencies": { "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.3.0", "@testing-library/user-event": "^13.5.0", "react": "^18.1.0", "react-dom": "^18.1.0", "react-scripts": "5.0.1", "styled-components": "^5.3.5", "web-vitals": "^2.1.4" },

Screenshots / Video

Related Issues

jessewriter commented 2 years ago

image

pixelOneZero commented 1 year ago

@jessewriter , I was able to work around the problem by updating the start command in package.json to the following:

"start": "export NODE_OPTIONS=--openssl-legacy-provider && react-scripts start"

jessewriter commented 1 year ago

@pixelOneZero yes that is a good workaround but one with less security