For some reason, even after changing max_old_space_size
to 8192 I am still getting the error that:
FATAL ERROR: invalid table size Allocation failed - JavaScript heap out of memory
"start": "export NODE_OPTIONS=--max_old_space_size=8192 && nx run zeta-frontend:serve-ssr",
This is what my command looks like ^
Notes:
UPDATE:
Was able to solve via the following:
1.
"ng": "node --max-old-space-size=8192 ./node_modules/.bin/ng",
"nx": "node --max-old-space-size=8192 ./node_modules/.bin/nx",
"start:serve": "npm run nx -- run zeta-frontend:serve",
"budgets": [
{
"type": "initial",
"maximumWarning": "20mb",
"maximumError": "40mb"
},
...
]
It allowed the angular universal build to pass.
^ feel free to try above if have the same problem