If you try to build the app with Node.js 17 or later, you will be getting the following error:
error:0308010C:digital envelope routines::unsupported
As explained here, this error is due to a security hole in the SSL provider, which was fixed in Node.js v17.
A temporary solution is to stick with Node.js v16 in the CI. However, we should consider the more permanent solution, which is to upgrade all dependencies to their latest major releases.
This answer recommends an alternative solution that involves changing the hash function used by Webpack, but to make that work, we would need to use a newer version of Webpack, hence we're back to square one.
If you try to build the app with Node.js 17 or later, you will be getting the following error:
As explained here, this error is due to a security hole in the SSL provider, which was fixed in Node.js v17.
A temporary solution is to stick with Node.js v16 in the CI. However, we should consider the more permanent solution, which is to upgrade all dependencies to their latest major releases.
This answer recommends an alternative solution that involves changing the hash function used by Webpack, but to make that work, we would need to use a newer version of Webpack, hence we're back to square one.