Hello Frappe community,
I am encountering an issue during the build process of my Frappe application. When I run the build command, I receive the following warning and error:
- Warning:
Some chunks are larger than 500 kB after minification. Consider using dynamic import() to code-split the application or adjust the chunk size limit.
- Error:
After completing most of the build process, the system is being killed due to excessive resource usage with the error code137
. The specific error message is:
vbnet
CopyEdit
error Command failed with exit code 137.
- Additional Information:
- The build completes in around 14 seconds before failing.
- The issue seems to be related to large chunk sizes and possibly insufficient system resources.
Steps Taken:
- Tried running the build multiple times, but the same error occurs each time.
- I attempted to adjust configurations, but I don’t have direct access to the
rollup
orvite
configuration files. - The system resources on the server show around 2.4GB of RAM usage, and the server is using a 4GB setup.
Environment:
- Frappe version: (please specify the version you’re using)
- Vite version: v4.5.5
- Node.js version: (please specify)
- Yarn version: (please specify)
Request for Help:
- Could anyone provide insights on how to resolve the chunk size issue, or how to optimize the build process to avoid running out of memory?
- Any suggestions on configurations or system optimizations to prevent the build process from being killed (exit code 137)?
Thank you in advance for your help!