I have returned to my original project. Since I think I made many changes, I am starting over from step one.
I have also updated my Node.js to version 20.11.0, while still on Ionic 6. I am now encountering the following error. I would like to get Ionic 6 running with Node.js first before I progress. Can you advise what is causing this issue?
ionic serve
> ng.cmd run app:serve --host=localhost --port=8100
[ng] ****************************************************************************************
[ng] This is a simple server for use in testing or debugging Angular applications locally.
[ng] It hasn't been reviewed for security issues.
[ng]
[ng] DON'T USE IT FOR PRODUCTION!
[ng] ****************************************************************************************
[ng] - Generating browser application bundles (phase: setup)...
[ng] node:internal/crypto/hash:68
[ng] this[kHandle] = new _Hash(algorithm, xofLen);
[ng] ^
[ng] Error: error:0308010C:digital envelope routines::unsupported
[ng] at new Hash (node:internal/crypto/hash:68:19)
[ng] at Object.createHash (node:crypto:138:10)
[ng] at BulkUpdateDecorator.hashFactory (G:\AVR_Project\Ionic Projects\App0001-AardraCloud\node_modules\webpack\lib\util\createHash.js:145:18)
[ng] at BulkUpdateDecorator.update (G:\AVR_Project\Ionic Projects\App0001-AardraCloud\node_modules\webpack\lib\util\createHash.js:46:50)
[ng] at G:\AVR_Project\Ionic Projects\App0001-AardraCloud\node_modules\webpack\lib\FileSystemInfo.js:2677:9
[ng] at processTicksAndRejections (node:internal/process/task_queues:82:21)
[ng] at runNextTicks (node:internal/process/task_queues:64:3)
[ng] at process.processImmediate (node:internal/timers:449:9) {
[ng] opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
[ng] library: 'digital envelope routines',
[ng] reason: 'unsupported',
[ng] code: 'ERR_OSSL_EVP_UNSUPPORTED'
[ng] }
[ng] Node.js v20.11.0
[ERROR] ng has unexpectedly closed (exit code 1).