I am constantly getting the ERR_OSSL_EVP_UNSUPPORTED error, I did some research on the internet, I did what was said, but the error did not get fixed, what could be the reason? json.package is as follows.
{
"name": "intelijReactNative",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"build": "react-scripts --openssl-legacy-provider build",
"start": "react-scripts --openssl-legacy-provider start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"react": "17.0.2",
"react-native": "0.66.3"
},
"devDependencies": {
"@babel/core": "7.16.0",
"@babel/runtime": "7.16.3",
"@react-native-community/eslint-config": "2.0.0",
"babel-jest": "26.6.3",
"eslint": "7.14.0",
"jest": "26.6.3",
"metro-react-native-babel-preset": "0.66.2",
"react-test-renderer": "17.0.2"
},
"jest": {
"preset": "react-native"
}
the error is as below
Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:130:10)
at stableHash (C:\Users\furka\Desktop\intelijReactNative\node_modules\metro-cache\src\stableHash.js:19:8)
at Object.getCacheKey (C:\Users\furka\Desktop\intelijReactNative\node_modules\metro-transform-worker\src\index.js:593:7)
at getTransformCacheKey (C:\Users\furka\Desktop\intelijReactNative\node_modules\metro\src\DeltaBundler\getTransformCacheKey.js:24:19)
at new Transformer (C:\Users\furka\Desktop\intelijReactNative\node_modules\metro\src\DeltaBundler\Transformer.js:48:9)
at C:\Users\furka\Desktop\intelijReactNative\node_modules\metro\src\Bundler.js:22:29
at runNextTicks (node:internal/process/task_queues:61:5)
at processTimers (node:internal/timers:497:9) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}