Skip to content

馃悰 FIX: pin node version in gitlab-ci to 16

Jonas Sulzer requested to merge pipeline-fix into master

otherwise nuxt generate fails with

[error] Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at module.exports (/builds/websites/violoncello.ch/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/builds/websites/violoncello.ch/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/builds/websites/violoncello.ch/node_modules/webpack/lib/NormalModule.js:471:10)
    at /builds/websites/violoncello.ch/node_modules/webpack/lib/NormalModule.js:503:5
    at /builds/websites/violoncello.ch/node_modules/webpack/lib/NormalModule.js:358:12
    at /builds/websites/violoncello.ch/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/builds/websites/violoncello.ch/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/builds/websites/violoncello.ch/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /builds/websites/violoncello.ch/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at runSyncOrAsync (/builds/websites/violoncello.ch/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
    at iterateNormalLoaders (/builds/websites/violoncello.ch/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
    at Array.<anonymous> (/builds/websites/violoncello.ch/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/builds/websites/violoncello.ch/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /builds/websites/violoncello.ch/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
[error] error:0308010C:digital envelope routines::unsupported
  at new Hash (node:internal/crypto/hash:67:19)
  at Object.createHash (node:crypto:130:10)
  at module.exports (node_modules/webpack/lib/util/createHash.js:135:53)
  at NormalModule._initBuildHash (node_modules/webpack/lib/NormalModule.js:417:16)
  at handleParseError (node_modules/webpack/lib/NormalModule.js:471:10)
  at node_modules/webpack/lib/NormalModule.js:503:5
  at node_modules/webpack/lib/NormalModule.js:358:12
  at node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:373:3
  at iterateNormalLoaders (node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
  at iterateNormalLoaders (node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
  at node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:236:3
  at context.callback (node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
  at node_modules/babel-loader/lib/index.js:59:71

an other workaround would be to somehow pass --openssl-legacy-provider argument to node (see https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported)

Merge request reports

Loading