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

ERR_OSSL_EVP_UNSUPPORTED with node 18 #98

Open
namiwang opened this issue Jun 22, 2023 · 0 comments
Open

ERR_OSSL_EVP_UNSUPPORTED with node 18 #98

namiwang opened this issue Jun 22, 2023 · 0 comments

Comments

@namiwang
Copy link

repro: create a new game following the first-time-setup with node v18.

log:

npm start

> my-hex-engine-game@0.0.1 start
> hex-engine-scripts dev

Starting type checking service...
ℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /Users/user/workspace/test
ℹ 「wds」: 404s will fallback to /index.html
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 (/Users/user/workspace/test/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/user/workspace/test/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/Users/user/workspace/test/node_modules/webpack/lib/NormalModule.js:471:10)
    at /Users/user/workspace/test/node_modules/webpack/lib/NormalModule.js:503:5
    at /Users/user/workspace/test/node_modules/webpack/lib/NormalModule.js:358:12
    at /Users/user/workspace/test/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/Users/user/workspace/test/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/Users/user/workspace/test/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
node:internal/crypto/hash:71
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

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 (/Users/user/workspace/test/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/user/workspace/test/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/Users/user/workspace/test/node_modules/webpack/lib/NormalModule.js:471:10)
    at /Users/user/workspace/test/node_modules/webpack/lib/NormalModule.js:503:5
    at /Users/user/workspace/test/node_modules/webpack/lib/NormalModule.js:358:12
    at /Users/user/workspace/test/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/Users/user/workspace/test/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array.<anonymous> (/Users/user/workspace/test/node_modules/loader-runner/lib/LoaderRunner.js:205:4) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.7.0

workaround: export NODE_OPTIONS=--openssl-legacy-provider

reference: https://stackoverflow.com/questions/69394632/webpack-build-failing-with-err-ossl-evp-unsupported

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