Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack fails with ERR_OSSL_EVP_UNSUPPORTED #134

Open
sano-jin opened this issue Mar 10, 2022 · 0 comments
Open

webpack fails with ERR_OSSL_EVP_UNSUPPORTED #134

sano-jin opened this issue Mar 10, 2022 · 0 comments

Comments

@sano-jin
Copy link
Contributor

npm run build

をして webpack が走った結果

npm run build

> webHydLa@1.0.0 build
> webpack

/home/sano/webHydLa/node_modules/loader-runner/lib/LoaderRunner.js:133
		if(isError) throw e;
		            ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:135:10)
    at module.exports (/home/sano/webHydLa/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/home/sano/webHydLa/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/home/sano/webHydLa/node_modules/webpack/lib/NormalModule.js:471:10)
    at /home/sano/webHydLa/node_modules/webpack/lib/NormalModule.js:503:5
    at /home/sano/webHydLa/node_modules/webpack/lib/NormalModule.js:358:12
    at /home/sano/webHydLa/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/home/sano/webHydLa/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/home/sano/webHydLa/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /home/sano/webHydLa/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at context.callback (/home/sano/webHydLa/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at makeSourceMapAndFinish (/home/sano/webHydLa/node_modules/ts-loader/dist/index.js:58:5)
    at successLoader (/home/sano/webHydLa/node_modules/ts-loader/dist/index.js:40:5)
    at Object.loader (/home/sano/webHydLa/node_modules/ts-loader/dist/index.js:23:5)
    at LOADER_EXECUTION (/home/sano/webHydLa/node_modules/loader-runner/lib/LoaderRunner.js:119:14)
    at runSyncOrAsync (/home/sano/webHydLa/node_modules/loader-runner/lib/LoaderRunner.js:120:4)
    at iterateNormalLoaders (/home/sano/webHydLa/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
    at Array.<anonymous> (/home/sano/webHydLa/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/home/sano/webHydLa/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /home/sano/webHydLa/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
    at /home/sano/webHydLa/node_modules/graceful-fs/graceful-fs.js:123:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'

となる事がある.

webpack version 6 で修正予定らしい.

当面は

export NODE_OPTIONS=--openssl-legacy-provider

することになるっぽい.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant