bitcrowd / tickety-tick

A browser extension that helps you name branches and write better commit messages
MIT License
57 stars 10 forks source link

Update webpack-cli package #367

Closed klappradla closed 1 year ago

klappradla commented 1 year ago

This updates webpack-cli to v5 and webpack (while I was already on it). Motivation for this is, that webpack-cli v4 is broken with the current LTS Node JS version.

See https://github.com/webpack/webpack/issues/14532

This is the error one runs into with the previous version:

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at BulkUpdateDecorator.hashFactory (/home/circleci/tickety-tick/node_modules/webpack/lib/util/createHash.js:155:18)
    at BulkUpdateDecorator.update (/home/circleci/tickety-tick/node_modules/webpack/lib/util/createHash.js:46:50)
    at SourceMapSource.updateHash (/home/circleci/tickety-tick/node_modules/webpack-sources/lib/SourceMapSource.js:231:8)
    at NormalModule._initBuildHash (/home/circleci/tickety-tick/node_modules/webpack/lib/NormalModule.js:888:17)
    at handleParseResult (/home/circleci/tickety-tick/node_modules/webpack/lib/NormalModule.js:954:10)
    at /home/circleci/tickety-tick/node_modules/webpack/lib/NormalModule.js:1048:4
    at processResult (/home/circleci/tickety-tick/node_modules/webpack/lib/NormalModule.js:763:11)
    at /home/circleci/tickety-tick/node_modules/webpack/lib/NormalModule.js:827:5 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}