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

Unable to run on Node LTS 20.11.0 #322

Open
steinybot opened this issue Feb 8, 2024 · 3 comments · May be fixed by #323
Open

Unable to run on Node LTS 20.11.0 #322

steinybot opened this issue Feb 8, 2024 · 3 comments · May be fixed by #323

Comments

@steinybot
Copy link

Steps to reproduce:

cd todo
yarn
yarn start

Fails with:

jason@goodness> yarn start                                                                                                                       ~/src/relay-examples/todo
yarn run v1.22.19
$ babel-node ./server.js
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
ℹ 「wds」: Project is running at http://localhost:3000/
ℹ 「wds」: webpack output is served from /js/
ℹ 「wds」: Content not from webpack is served from /public/
node:internal/crypto/hash:68
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:68:19)
    at Object.createHash (node:crypto:138:10)
    at module.exports (/Users/jason/src/relay-examples/todo/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/jason/src/relay-examples/todo/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/Users/jason/src/relay-examples/todo/node_modules/webpack/lib/NormalModule.js:471:10)
    at /Users/jason/src/relay-examples/todo/node_modules/webpack/lib/NormalModule.js:503:5
    at /Users/jason/src/relay-examples/todo/node_modules/webpack/lib/NormalModule.js:358:12
    at /Users/jason/src/relay-examples/todo/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/Users/jason/src/relay-examples/todo/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array.<anonymous> (/Users/jason/src/relay-examples/todo/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 v20.11.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@rbalicki2
Copy link

rbalicki2 commented Feb 8, 2024

I see this on

node --version
v18.19.0

FWIW

nvm use 16 fixed my issue

@steinybot
Copy link
Author

It's a case of running yarn update webpack. I'm just testing the other examples.

@steinybot
Copy link
Author

issue-tracker uses react-scripts 3.2.0 which in turn uses an old version of webpack. There is no version of react-scripts that uses webpack 4.47.0 (see facebook/create-react-app#13513).

This will have to be updated to react-scripts 5 which uses webpack 5 (there are breaking changes).

@steinybot steinybot linked a pull request Feb 9, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants