vercel / next.js

The React Framework
https://nextjs.org
MIT License
125.99k stars 26.87k forks source link

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

Closed Rafi-99 closed 3 years ago

Rafi-99 commented 3 years ago

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

ijjk commented 3 years ago

Closing as a duplicate of https://github.com/vercel/next.js/issues/30078

balazsorban44 commented 2 years ago

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.