Skip to content

Instantly share code, notes, and snippets.

@brainix
Created October 28, 2021 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brainix/6d5738d568a42651a81d4e040fb60712 to your computer and use it in GitHub Desktop.
Save brainix/6d5738d568a42651a81d4e040fb60712 to your computer and use it in GitHub Desktop.
Node.js 17.0.1 error when pushing to Heroku
rajiv.shah@C02FK16KMD6V vh1 % git push heroku master
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 16 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 4.30 KiB | 244.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpack: https://github.com/mars/create-react-app-buildpack.git
remote: -----> React.js (create-react-app) multi app detected
remote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-multi.git
remote: =====> Detected Framework: Multipack
remote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git
remote: =====> Detected Framework: Node.js
remote:
remote: -----> Creating runtime environment
remote:
remote: NPM_CONFIG_LOGLEVEL=error
remote: NODE_VERBOSE=false
remote: NODE_ENV=production
remote: NODE_MODULES_CACHE=true
remote:
remote: -----> Installing binaries
remote: engines.node (package.json): 17.0.1
remote: engines.npm (package.json): 8.1.1
remote:
remote: Resolving node version 17.0.1...
remote: Downloading and installing node 17.0.1...
remote: Bootstrapping npm 8.1.1 (replacing 8.1.0)...
remote: npm 8.1.1 installed
remote:
remote: -----> Restoring cache
remote: Cached directories were not restored due to a change in version of node, npm, yarn or stack
remote: Module installation may take longer for this build
remote:
remote: -----> Installing dependencies
remote: Installing node modules
remote:
remote: added 1927 packages, and audited 2145 packages in 59s
remote:
remote: 156 packages are looking for funding
remote: run `npm fund` for details
remote:
remote: 58 vulnerabilities (16 moderate, 40 high, 2 critical)
remote:
remote: To address issues that do not require attention, run:
remote: npm audit fix
remote:
remote: To address all issues (including breaking changes), run:
remote: npm audit fix --force
remote:
remote: Run `npm audit` for details.
remote:
remote: -----> Build
remote: Running build
remote:
remote: > vh1@0.1.0 build
remote: > react-scripts build
remote:
remote: Creating an optimized production build...
remote: Error: error:0308010C:digital envelope routines::unsupported
remote: at new Hash (node:internal/crypto/hash:67:19)
remote: at Object.createHash (node:crypto:130:10)
remote: at module.exports (/tmp/build_2d8a7469/node_modules/webpack/lib/util/createHash.js:135:53)
remote: at NormalModule._initBuildHash (/tmp/build_2d8a7469/node_modules/webpack/lib/NormalModule.js:417:16)
remote: at handleParseError (/tmp/build_2d8a7469/node_modules/webpack/lib/NormalModule.js:471:10)
remote: at /tmp/build_2d8a7469/node_modules/webpack/lib/NormalModule.js:503:5
remote: at /tmp/build_2d8a7469/node_modules/webpack/lib/NormalModule.js:358:12
remote: at /tmp/build_2d8a7469/node_modules/loader-runner/lib/LoaderRunner.js:373:3
remote: at iterateNormalLoaders (/tmp/build_2d8a7469/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
remote: at iterateNormalLoaders (/tmp/build_2d8a7469/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
remote: at /tmp/build_2d8a7469/node_modules/loader-runner/lib/LoaderRunner.js:236:3
remote: at runSyncOrAsync (/tmp/build_2d8a7469/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
remote: at iterateNormalLoaders (/tmp/build_2d8a7469/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
remote: at Array.<anonymous> (/tmp/build_2d8a7469/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
remote: at Storage.finished (/tmp/build_2d8a7469/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
remote: at /tmp/build_2d8a7469/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
remote: /tmp/build_2d8a7469/node_modules/react-scripts/scripts/build.js:19
remote: throw err;
remote: ^
remote:
remote: Error: error:0308010C:digital envelope routines::unsupported
remote: at new Hash (node:internal/crypto/hash:67:19)
remote: at Object.createHash (node:crypto:130:10)
remote: at module.exports (/tmp/build_2d8a7469/node_modules/webpack/lib/util/createHash.js:135:53)
remote: at NormalModule._initBuildHash (/tmp/build_2d8a7469/node_modules/webpack/lib/NormalModule.js:417:16)
remote: at /tmp/build_2d8a7469/node_modules/webpack/lib/NormalModule.js:452:10
remote: at /tmp/build_2d8a7469/node_modules/webpack/lib/NormalModule.js:323:13
remote: at /tmp/build_2d8a7469/node_modules/loader-runner/lib/LoaderRunner.js:367:11
remote: at /tmp/build_2d8a7469/node_modules/loader-runner/lib/LoaderRunner.js:233:18
remote: at context.callback (/tmp/build_2d8a7469/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
remote: at /tmp/build_2d8a7469/node_modules/babel-loader/lib/index.js:59:103 {
remote: opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
remote: library: 'digital envelope routines',
remote: reason: 'unsupported',
remote: code: 'ERR_OSSL_EVP_UNSUPPORTED'
remote: }
remote:
remote: Node.js v17.0.1
remote:
remote: -----> Build failed
remote:
remote: We're sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: If you're stuck, please submit a ticket so we can help:
remote: https://help.heroku.com/
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile React.js (create-react-app) multi app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to vh1.
remote:
To https://git.heroku.com/vh1.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/vh1.git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment