The ts/package-lock.json has an old version of webpack locked in.
It means if you're using node 18+ (maybe 17 also?) and you try to run npm run build in the ts folder, you will get an error: error:03000086:digital envelope routines::initialization error.
This can be resolved by updating the version of webpack.