-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Hi, I encountered an error while trying to run the development server using npm run develop. The error occurs with Node.js v20.17.0 and seems to be related to OpenSSL's digital envelope routines.
Steps to Reproduce
- Clone the repository.
- Run npm install to install dependencies.
- Run npm run develop to start the development server.
Error Message:
Error: error:8388016:digital envelope routines::unsupported
at How.Hesh (node_internal/crypto/near-79:19)
at Object.createHash (node crypto-139:18)
at BulkUpdateDecorator.hasFactory (/home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/util/createHash.js:155:18)
at BulkUpdateDecorator.update (/home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/util/createHash.js:55:51)
at /home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/DefinePlugin.js:568:16
at Array.forEach '
at ValueIntationsForValuee (/home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/DefinePlugin.js:564:31)
at /home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/DefinePlugin.js:591:5
at Hook.cval (eval at create (/home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10),
at Hook.CALL_DELEGATE [as_call] (/home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/Compiler.js:1093:26)
at /home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/Compiler.js:1097:29
at Hook.cval [as_callAsync] (eval at create (/home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10),
at Hook.CALL_ASYNC_DELEGATE [as_callAsync] (/home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.compile (/home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/Compiler.js:1092:28)
at /home/usama/Daoud_DATA/techstack-generator/node_modules/webpack/lib/Matching.js:290:19 {
opensStirrorStack;
'error:83880086:digital envelope routines::initialization error',
'error:8388016:digital envelope routines::unsupported'
},
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Temporary Workaround:
I found that downgrading Node.js to v16.x or v18.x resolves the issue. This seems to be related to OpenSSL changes in Node.js v20.x.
Expected Behavior:
- The development server should start without errors.
Possible Solution:
- Update dependencies to support Node.js v20.x.
- Add a note in the documentation about supported Node.js versions.
Additional Context:
- This issue might be related to the OpenSSL configuration in Node.js v20.x. It would be helpful to update the project to support newer Node.js versions or provide clear documentation about compatibility.