Open
Conversation
with long term support node v18, we get an error when starting the
server[1]. This commit uses legacy ssl in order to fix this and support
the current lts node executable.
[1]
```
✦ ~/
❯ node --version
v18.16.0
~/
❯ yarn start
yarn run v1.22.19
$ node server.js
Listening on port 9000
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 (/home/g/work/1031exchange.ai/stimulus-starter/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/home/g/work/1031exchange.ai/stimulus-starter/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/home/g/work/1031exchange.ai/stimulus-starter/node_modules/webpack/lib/NormalModule.js:471:10)
at /home/g/work/1031exchange.ai/stimulus-starter/node_modules/webpack/lib/NormalModule.js:503:5
at /home/g/work/1031exchange.ai/stimulus-starter/node_modules/webpack/lib/NormalModule.js:358:12
at /home/g/work/1031exchange.ai/stimulus-starter/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/home/g/work/1031exchange.ai/stimulus-starter/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/home/g/work/1031exchange.ai/stimulus-starter/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /home/g/work/1031exchange.ai/stimulus-starter/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (/home/g/work/1031exchange.ai/stimulus-starter/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /home/g/work/1031exchange.ai/stimulus-starter/node_modules/babel-loader/lib/index.js:44:71 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v18.16.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
~/
❯
```
Member
|
Needs a rebase. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
with long term support node v18, we get an error when starting the server[1]. This commit uses legacy ssl in order to fix this and support the current lts node executable.
This fixes #19
[1]