Hi, I encountered the same error, which seems to be related to memory issues:
I found a workaround by using this command: NODE_OPTIONS="--max-old-space-size=5096" yarn start
If this doesn't resolve the issue for you, you may need to adjust the memory allocation for Ubuntu to 3500.
NODE_OPTIONS=--max-old-space-size=4096 yarn start:prod
yarn run v1.22.19
$ yarn run build:prod && cross-env NODE_ENV=production yarn run serve:ssr
$ cross-env NODE_ENV=production yarn run build:ssr
$ ng build --configuration production && ng run dspace-angular:server:production
⠦ Generating browser application bundles (phase: building)...Killed
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 137.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.