Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jessewriter opened this issue Jun 11, 2022 · 3 comments

Comments

@jessewriter
Copy link

jessewriter commented Jun 11, 2022

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
Copy link
Author

image

@pixelOneZero
Copy link

@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
Copy link
Author

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

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

No branches or pull requests

2 participants