Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Fix dev server start error #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adnull
Copy link

@adnull adnull commented Oct 16, 2023

The original code has outdated webpack which is using outdated openssl functions, so it produces the next error on development server start:

node:internal/crypto/hash:68
  this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

...

Error: error:0308010C:digital envelope routines::unsupported
  at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

This happens because:

From Node version 17 onwards node upgraded from OpenSSL1.1.1 to OpenSSL3. And OpenSSL3 doesn't support some old Hashing techniques. Which is why we face this error 'ERR_OSSL_EVP_UNSUPPORTED'.

Updating to the last available version of webpack fixes this.

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

Successfully merging this pull request may close these issues.

1 participant