linkedpipes / dcat-ap-viewer

Viewer of DCAT-AP 2.0.1 compatible dataset metadata
MIT License
6 stars 6 forks source link

Cannot build with node 17.3.1 #270

Closed jakubklimek closed 2 years ago

jakubklimek commented 2 years ago

The error is as follows: Workaround available but update is probably needed.

lpdav@nkod-prod-fe:/opt/lp/dcat-ap-viewer$ npm run build

> dcat-viewer@1.0.0-alpha.0 build
> cross-env NODE_ENV=production webpack --config ./build/webpack.production.js

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at BulkUpdateDecorator.hashFactory (/opt/lp/dcat-ap-viewer/node_modules/webpack/lib/util/createHash.js:144:18)
    at BulkUpdateDecorator.update (/opt/lp/dcat-ap-viewer/node_modules/webpack/lib/util/createHash.js:46:50)
    at RawSource.updateHash (/opt/lp/dcat-ap-viewer/node_modules/webpack/node_modules/webpack-sources/lib/RawSource.js:64:8)
    at NormalModule._initBuildHash (/opt/lp/dcat-ap-viewer/node_modules/webpack/lib/NormalModule.js:867:17)
    at handleParseResult (/opt/lp/dcat-ap-viewer/node_modules/webpack/lib/NormalModule.js:933:10)
    at /opt/lp/dcat-ap-viewer/node_modules/webpack/lib/NormalModule.js:1025:4
    at processResult (/opt/lp/dcat-ap-viewer/node_modules/webpack/lib/NormalModule.js:742:11)
    at /opt/lp/dcat-ap-viewer/node_modules/webpack/lib/NormalModule.js:806:5
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
node:internal/crypto/hash:67
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at BulkUpdateDecorator.hashFactory (/opt/lp/dcat-ap-viewer/node_modules/webpack/lib/util/createHash.js:144:18)
    at BulkUpdateDecorator.update (/opt/lp/dcat-ap-viewer/node_modules/webpack/lib/util/createHash.js:46:50)
    at RawSource.updateHash (/opt/lp/dcat-ap-viewer/node_modules/webpack/node_modules/webpack-sources/lib/RawSource.js:64:8)
    at NormalModule._initBuildHash (/opt/lp/dcat-ap-viewer/node_modules/webpack/lib/NormalModule.js:867:17)
    at handleParseResult (/opt/lp/dcat-ap-viewer/node_modules/webpack/lib/NormalModule.js:933:10)
    at /opt/lp/dcat-ap-viewer/node_modules/webpack/lib/NormalModule.js:1025:4
    at processResult (/opt/lp/dcat-ap-viewer/node_modules/webpack/lib/NormalModule.js:742:11)
    at /opt/lp/dcat-ap-viewer/node_modules/webpack/lib/NormalModule.js:806:5 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'