I’m in the project Creating REST API Endpoints and following the instructions, very simple, just download, npm install and npm run start in each sub-folder for the project.
But I’m having these errors when starting the front end; I’ve tried to figure out changing react-scripts versions and also installing most recent version of webpack but didnt work.
Does anybody knows what it could be?
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\webpack\lib\NormalModule.js:471:10)
at C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\webpack\lib\NormalModule.js:503:5
at C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\webpack\lib\NormalModule.js:358:12
at C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at iterateNormalLoaders (C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\react-scripts\scripts\start.js:19
throw err;
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\webpack\lib\NormalModule.js:417:16)
at C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\webpack\lib\NormalModule.js:452:10
at C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\webpack\lib\NormalModule.js:323:13
at C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at C:\Users\guhen\Downloads\creating-rest-api (1)\creating-rest-api\starting-code\frontend\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’
}