matheowis / HDRI-to-CubeMap

Image converter from spherical map to cubemap
https://matheowis.github.io/HDRI-to-CubeMap/
MIT License
471 stars 76 forks source link

Unfortunately fails with the OpenSSL crypto error #14

Open ProgrammingLife opened 2 years ago

ProgrammingLife commented 2 years ago
→ npm start                                                                                                                                                                                                                         ▸  Tue Aug 23, 05:17:50 

> hdri-to-cubemap@1.0.0 start
> webpack-dev-server --mode=development

(node:27368) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
ℹ 「wds」: Project is running at http://localhost:8080/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/guest/dir/HDRI-to-CubeMap/public
ℹ 「wds」: 404s will fallback to /index.html
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 module.exports (/home/guest/dir/HDRI-to-CubeMap/node_modules/webpack/lib/util/createHash.js:90:53)
    at NormalModule._initBuildHash (/home/guest/dir/HDRI-to-CubeMap/node_modules/webpack/lib/NormalModule.js:384:16)
    at handleParseError (/home/guest/dir/HDRI-to-CubeMap/node_modules/webpack/lib/NormalModule.js:432:10)
    at /home/guest/dir/HDRI-to-CubeMap/node_modules/webpack/lib/NormalModule.js:464:5
    at /home/guest/dir/HDRI-to-CubeMap/node_modules/webpack/lib/NormalModule.js:325:12
    at /home/guest/dir/HDRI-to-CubeMap/node_modules/loader-runner/lib/LoaderRunner.js:370:3
    at iterateNormalLoaders (/home/guest/dir/HDRI-to-CubeMap/node_modules/loader-runner/lib/LoaderRunner.js:211:10)
    at Array.<anonymous> (/home/guest/dir/HDRI-to-CubeMap/node_modules/loader-runner/lib/LoaderRunner.js:202:4) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v17.0.1

How to fix it? Thanks for the greatest service!

thomasw04 commented 1 year ago

@ProgrammingLife it should be enough to run npm update, in order to solve this error. (Because the package-lock was generated with an old node version)

hichemfantar commented 4 days ago

I rewrote the project in typescript and a new ui as an effort to maintain it https://github.com/hichemfantar/hdri-to-cubemap-converter feel free to open an issue and don't forget to leave a star ⭐