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

Update dependency ncc to v0.34.0 #14

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

Conversation

F3n67u
Copy link
Member

@F3n67u F3n67u commented Jul 23, 2022

Problem

npm run build fail with Node 18:

$ node -v      
v18.2.0
$ npm run build

> node-pr-labeler@1.0.0 build
> ncc build index.js

ncc: Version 0.27.0
ncc: Compiling file index.js
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:133:10)
    at hashOf (/Users/feng/dev/node-pr-labeler/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:1:3253134)
    at ncc (/Users/feng/dev/node-pr-labeler/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:1:3256648)
    at runCmd (/Users/feng/dev/node-pr-labeler/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:51537)
    at 819 (/Users/feng/dev/node-pr-labeler/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:48344)
    at __webpack_require__ (/Users/feng/dev/node-pr-labeler/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:55043)
    at /Users/feng/dev/node-pr-labeler/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:55194
    at /Users/feng/dev/node-pr-labeler/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:55220
    at Object.<anonymous> (/Users/feng/dev/node-pr-labeler/node_modules/@vercel/ncc/dist/ncc/cli.js:8:28) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Solution

ncc have solved this problem, so I update ncc to latest version

$ npm run build            

> node-pr-labeler@1.0.0 build
> ncc build index.js

ncc: Version 0.34.0
ncc: Compiling file index.js into CJS
617kB  dist/index.js
617kB  [2195ms] - ncc 0.34.0

Refs: vercel/ncc#805

@F3n67u F3n67u changed the title Fix build failure in Node v18 Update dependency ncc to v0.34.0 Jul 23, 2022
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 this pull request may close these issues.

None yet

1 participant