Skip to content

webpakcerサービスでERR_OSSL_EVP_UNSUPPORTEDエラーが起こる #9

@y-amadatsu

Description

@y-amadatsu
ℹ 「wds」: Project is running at http://localhost:3035/
ℹ 「wds」: webpack output is served from /packs/
ℹ 「wds」: Content not from webpack is served from /news_and_employee_introduction/public/packs
ℹ 「wds」: 404s will fallback to /index.html
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: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 (/news_and_employee_introduction/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/news_and_employee_introduction/node_modules/webpack/lib/NormalModule.js:417:16)
    at /news_and_employee_introduction/node_modules/webpack/lib/NormalModule.js:452:10
    at /news_and_employee_introduction/node_modules/webpack/lib/NormalModule.js:323:13
    at /news_and_employee_introduction/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /news_and_employee_introduction/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/news_and_employee_introduction/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /news_and_employee_introduction/node_modules/babel-loader/lib/index.js:59:103 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.12.1

暫定的な解決方法

  • export NODE_OPTIONS=--openssl-legacy-provider

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions