-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Storybook Build running out of memory #7520
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This pull request addresses memory-related issues in the build process and makes minor code readability improvements.
- Increased Node.js process memory limit from 6000MB to 8000MB in
packages/twenty-front/project.json
for the 'storybook:build' target - Added empty lines for improved readability in
packages/twenty-front/src/modules/workflow/components/WorkflowEditActionFormSendEmail.tsx
- Changes aim to prevent 'JavaScript heap out of memory' errors during builds
- Modification may impact system resources and build performance
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
packages/twenty-front/project.json
Outdated
@@ -67,7 +67,7 @@ | |||
"test": {}, | |||
"storybook:build": { | |||
"options": { | |||
"env": { "NODE_OPTIONS": "--max_old_space_size=6000" } | |||
"env": { "NODE_OPTIONS": "--max_old_space_size=8000" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a lot of RAM, I have already investigated it and the solution is to split the project into pieces OR lazy loading strategy on some app branches (already done for Settings)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Let's merge once tests are green
Increases the node process memory to avoid `FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory` errors
Increases the node process memory to avoid
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
errors