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

[Dashboard] Failure to build for node>=v17 #28023

Closed
peytondmurray opened this issue Aug 19, 2022 · 1 comment
Closed

[Dashboard] Failure to build for node>=v17 #28023

peytondmurray opened this issue Aug 19, 2022 · 1 comment
Assignees
Labels
bug Something that is supposed to be working; but isn't dashboard Issues specific to the Ray Dashboard P2 Important issue, but not time-critical

Comments

@peytondmurray
Copy link
Contributor

What happened + What you expected to happen

The Ray dashboard fails to build with newer versions of Ray - v16.17.0 is the version I'm currently using to successfully build the dashboard, but I've tried with later versions without success. Here's the error:

yarn run v1.22.19
$ react-scripts build
Creating an optimized production build...
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/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/webpack/lib/NormalModule.js:471:10)
    at /home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/webpack/lib/NormalModule.js:503:5
    at /home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/webpack/lib/NormalModule.js:358:12
    at /home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at runSyncOrAsync (/home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
    at iterateNormalLoaders (/home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
    at Array.<anonymous> (/home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
/home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/react-scripts/scripts/build.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/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/webpack/lib/NormalModule.js:417:16)
    at /home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/webpack/lib/NormalModule.js:452:10
    at /home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/webpack/lib/NormalModule.js:323:13
    at /home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /home/pdmurray/Desktop/workspace/ray/dashboard/client/node_modules/react-scripts/node_modules/babel-loader/lib/index.js:59:103 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.4.0

It seems like this is an issue with webpack, and it might only be a matter of upgrading react-scripts - see facebook/create-react-app#11708.

Versions / Dependencies

Dependency Version
Ray master
node >16.17.0

Reproduction script

  1. Install node@v18.7.0
  2. cd ray/dashboard/client
  3. yarn && yarn build

Issue Severity

Low: It annoys or frustrates me.

@peytondmurray peytondmurray added bug Something that is supposed to be working; but isn't triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Aug 19, 2022
@peytondmurray peytondmurray changed the title [Dashboard] Failure to build for node>v17 [Dashboard] Failure to build for node>=v17 Aug 19, 2022
@alanwguo alanwguo added P2 Important issue, but not time-critical dashboard Issues specific to the Ray Dashboard and removed triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Dec 14, 2022
@alanwguo alanwguo self-assigned this Dec 14, 2022
@alanwguo
Copy link
Contributor

We've actually upgraded react-scripts since august so this may be fixed. I'll verify before closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is supposed to be working; but isn't dashboard Issues specific to the Ray Dashboard P2 Important issue, but not time-critical
Projects
None yet
Development

No branches or pull requests

2 participants