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

after npm run dev, got Error: error:0308010C:digital envelope routines::unsupported #70

Open
Evelyn6511 opened this issue May 5, 2023 · 2 comments

Comments

@Evelyn6511
Copy link

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at BulkUpdateDecorator.hashFactory (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:133863:18)
at BulkUpdateDecorator.update (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:133764:50)
at OriginalSource.updateHash (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack-sources2\index.js:1:21039)
at NormalModule._initBuildHash (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65771:17)
at handleParseResult (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65837:10)
at D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65929:4
at processResult (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65646:11)
at D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65710:5
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at BulkUpdateDecorator.hashFactory (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:133863:18)
at BulkUpdateDecorator.update (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:133764:50)
at OriginalSource.updateHash (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack-sources2\index.js:1:21039)
at NormalModule._initBuildHash (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65771:17)
at handleParseResult (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65837:10)
at D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65929:4
at processResult (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65646:11)
at D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65710:5
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 BulkUpdateDecorator.hashFactory (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:133863:18)
at BulkUpdateDecorator.update (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:133764:50)
at OriginalSource.updateHash (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack-sources2\index.js:1:21039)
at NormalModule._initBuildHash (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65771:17)
at handleParseResult (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65837:10)
at D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65929:4
at processResult (D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65646:11)
at D:\reactproject\polygon-ethereum-nextjs-marketplace-main\node_modules\next\dist\compiled\webpack\bundle5.js:65710:5 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

@L-KH
Copy link

L-KH commented May 27, 2023

You can try:

  1. Enable legacy OpenSSL provider.

On Unix-like (Linux, macOS, Git bash, etc.):

export NODE_OPTIONS=--openssl-legacy-provider
On Windows command prompt:

set NODE_OPTIONS=--openssl-legacy-provider
On PowerShell:

$env:NODE_OPTIONS = "--openssl-legacy-provider"

@Nickyk05
Copy link

Nickyk05 commented Aug 1, 2023

Visit the official Eth page to rectify your issues.
Note: you can also initiate a chat with the support agent for further assistance.

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

4 participants
@L-KH @Evelyn6511 @Nickyk05 and others