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

support lts node v18 #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 19, 2023

  1. support lts node v18

    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.
    
    ~/
    ❯
    ```
    geofflangenderfer committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    4c33c7b View commit details
    Browse the repository at this point in the history