geolonia / community-geocoder

Open Source and Free GeoCoding API in Japan
MIT License
180 stars 26 forks source link

Node 18.x でビルドの際にエラーが出る #151

Closed miya0001 closed 1 year ago

miya0001 commented 1 year ago

エラーは以下の通り。エラーが出たバージョンは 18.12.116.19 では問題なかった。

$ npm run build

> simple-geocoding@1.0.0 build
> webpack -p --config ./webpack.config.js

node:internal/crypto/hash:71
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (/Users/miya/repos/community-geocoder/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/miya/repos/community-geocoder/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/Users/miya/repos/community-geocoder/node_modules/webpack/lib/NormalModule.js:471:10)
    at /Users/miya/repos/community-geocoder/node_modules/webpack/lib/NormalModule.js:503:5
    at /Users/miya/repos/community-geocoder/node_modules/webpack/lib/NormalModule.js:358:12
    at /Users/miya/repos/community-geocoder/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/Users/miya/repos/community-geocoder/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/Users/miya/repos/community-geocoder/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /Users/miya/repos/community-geocoder/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at context.callback (/Users/miya/repos/community-geocoder/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /Users/miya/repos/community-geocoder/node_modules/babel-loader/lib/index.js:59:71 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}