Getting memory errors while trying to set up twenty on my local ubuntu machine.
I am trying to set up twenty for the first time on my ubuntu machine and facing some issue related to the memory, I have a 8gb 80gb ubuntu + windows dual boot laptop.
I am getting the issue as "Worker terminated due to reaching memory limit: JS heap out of memory" when i try to run npx nx start command.
Things I have done -
- Using node 18.17.1
- using yarn
- installed postgres and created the db as default and test
- installed redis using snap and i can run redis-cli(ping gives pong)
I think i satisfy all the requirements to run the app locally, still when i try to run it, i get the issue again and again.
Debugging i tried -
Tried to NODE_OPTIONS="--max-old-space-size=4096" npx nx start to avoid memory issues(that is what cursor suggested)
Tried to clean the nx and yarn cache and delete all node_modules and then run yarn install and npx nx start.
I think the backend and the service worker is running fine, the problem is with the frontend.(Runninng back,service,front gives problem with frontend only)
Can anyone please help me here?
6 Replies
Hello @hello kitty, we've merge an out of memory fix yesterday.
Be sure to rebase on main, if that still not adress the issue, then your machine might tidy on RAM to handle all of serving vite, typecheck and linter at the sametime
In this way please disable either one or both of lint or typecheck from your vite start using the following
twenty-front
env var describe herehey thank you for this. that error is now gone but now i am now stuck with this
I am using the latest tag i.e., v0.50.5 and have commented out the lines as suggest in the second link you shared.
Can you please tell me where i am wrong here. Am i supposed to run some other tag/commit?

There is nothing on the screen.
Unfortunately It seems like to be a bug only repricable on a specific firefox version
Haven't been able to reproduce it in local
hey, yes the problem seems to be with firefox, works fine with brave.
@hello kitty I've reported the same issue over a month ago (which is now closed), linked PR should resolve the problem https://github.com/twentyhq/twenty/issues/10596
GitHub
Twenty is unusable on Firefox · Issue #10596 · twentyhq/twenty
Scenario: Open Twenty Actual: It's impossible to log in, on login page there's white page instead of login popup, in devtools there are errors about released snapshot and failed DOM validat...