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

ERROR: 0308010C:digital envelope routines::unsupported #98

Open
AmmarAhmed1448 opened this issue Sep 26, 2024 · 0 comments
Open

ERROR: 0308010C:digital envelope routines::unsupported #98

AmmarAhmed1448 opened this issue Sep 26, 2024 · 0 comments

Comments

@AmmarAhmed1448
Copy link

AmmarAhmed1448 commented Sep 26, 2024

When I try to build the react app, I get the error Error: 0308010C:digital envelope routines::unsupported.

Environment:
OS: WSL Ubuntu 22.04.5 LTS
Python version: Python 3.7.17

Steps:
After cloning the repo, and successfully resolving the dependency errors, write cd interface, then npm install to install react packages
After that run make rb (Run this where your makefile is present. For this project, it is in the root directory)

After that you will get the errors below

Below are the error details

(.myvenv) ammar@DESKTOP-T7MAB6U:/mnt/f/Ammar/Semester 7/NIS/Project/Source Code/OpenUBA$ make rb
cd interface/ ; npm run build

> [email protected] build
> react-scripts build

Creating an optimized production build...
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\webpack\lib\NormalModule.js:417:16)
    at handleParseError (F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\webpack\lib\NormalModule.js:471:10)
    at F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\webpack\lib\NormalModule.js:503:5
    at F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\webpack\lib\NormalModule.js:358:12
    at F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\loader-runner\lib\LoaderRunner.js:373:3
    at iterateNormalLoaders (F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
    at iterateNormalLoaders (F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\react-scripts\scripts\build.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at module.exports (F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\webpack\lib\util\createHash.js:135:53)
    at NormalModule._initBuildHash (F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\webpack\lib\NormalModule.js:417:16)
    at F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\webpack\lib\NormalModule.js:452:10
    at F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\webpack\lib\NormalModule.js:323:13
    at F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\loader-runner\lib\LoaderRunner.js:367:11
    at F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\loader-runner\lib\LoaderRunner.js:233:18
    at context.callback (F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
    at F:\Ammar\Semester 7\NIS\Project\Source Code\OpenUBA\interface\node_modules\babel-loader\lib\index.js:59:103 {
  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v22.2.0
make: *** [Makefile:35: rb] Error 1


If anyone knows the solution for this, please let me know.

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

1 participant