-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Description
I wanted to try out your project to get a better understanding of protobuf. I encountered an error when starting with 'yarn start'.
The console output:
Starting the development server...
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:133:10)
at module.exports (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/webpack/lib/NormalModule.js:414:16)
at handleParseError (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/webpack/lib/NormalModule.js:467:10)
at /home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/webpack/lib/NormalModule.js:499:5
at /home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/webpack/lib/NormalModule.js:356:12
at /home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at runSyncOrAsync (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
at iterateNormalLoaders (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
at Array.<anonymous> (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
at Storage.finished (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:43:16)
at /home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:79:9
/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/react-scripts/scripts/start.js:19
throw err;
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:67:19)
at Object.createHash (node:crypto:133:10)
at module.exports (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/webpack/lib/NormalModule.js:414:16)
at /home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/webpack/lib/NormalModule.js:448:10
at /home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/webpack/lib/NormalModule.js:322:13
at /home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /home/aronmal/Documents/Github/protobuf-decoder-master/node_modules/babel-loader/lib/index.js:55:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.1.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I found a fix online.
In the package.json, change the line
"start": "react-scripts start"
to
"start": "react-scripts --openssl-legacy-provider start"
With this change, it compiled successfully.
Metadata
Metadata
Assignees
Labels
No labels