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

Error: error:0308010C:digital envelope routines::unsupported #30188

Closed
Rafi-99 opened this issue Oct 22, 2021 · 2 comments
Closed

Error: error:0308010C:digital envelope routines::unsupported #30188

Rafi-99 opened this issue Oct 22, 2021 · 2 comments
Labels
bug Issue was opened via the bug report template.

Comments

@Rafi-99
Copy link

Rafi-99 commented Oct 22, 2021

What version of Next.js are you using?

11.1.2

What version of Node.js are you using?

17.0.1

What browser are you using?

Google Chrome

What operating system are you using?

Windows 11

How are you deploying your application?

npm run dev

Describe the Bug

The app fails to start up. Attempting to start the server always causes the app to crash. I noticed I got the same error using create-react-app too, so this isn't just a Next.js issue.

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 BulkUpdateDecorator.hashFactory (C:\Users\rafim\Documents\Coding\Projects\Web\next-portfolio-website\node_modules\next\dist\compiled\webpack\bundle5.js:138971:18)
    at BulkUpdateDecorator.update (C:\Users\rafim\Documents\Coding\Projects\Web\next-portfolio-website\node_modules\next\dist\compiled\webpack\bundle5.js:138872:50)
    at C:\Users\rafim\Documents\Coding\Projects\Web\next-portfolio-website\node_modules\next\dist\compiled\webpack\bundle5.js:59321:9
    at C:\Users\rafim\Documents\Coding\Projects\Web\next-portfolio-website\node_modules\next\dist\compiled\webpack\bundle5.js:29861:16
    at C:\Users\rafim\Documents\Coding\Projects\Web\next-portfolio-website\node_modules\next\dist\compiled\@vercel\nft\index.js:1:307088
    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'
}

Node.js v17.0.1

Expected Behavior

The development server should have started running as expected. App fails to start up on localhost:3000.

To Reproduce

  • Download the latest version of Node.js
  • Create a new Next.js app using npx create-next-app
  • Start the development server using npm run dev
@Rafi-99 Rafi-99 added the bug Issue was opened via the bug report template. label Oct 22, 2021
@ijjk
Copy link
Member

ijjk commented Oct 22, 2021

Closing as a duplicate of #30078

@ijjk ijjk closed this as completed Oct 22, 2021
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants