FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
This error means your Node.js application is running out of memory it's trying to use more RAM than allowed. I can help you fix this! Common causes are: Processing large files/datasets Memory leaks in your code Default heap size too small for your application What are you running when this happens? (e.g., build process, data processing, server application)
A build process am using appwrite sites
For the build issue: Appwrite Sites builds can hit memory limits with large projects. Quick fixes: Increase Node memory: NODE_OPTIONS=--max-old-space-size=4096 Optimize dependencies (remove unused packages) Check for large files in your build I'd be happy to help you solve this properly. Can we move this to a message? I have some specific solutions for Appwrite builds, and we can discuss how I can assist you with this project more comprehensively.
hi thank you for reply i will try to find unused packages
not sure where to set that am using appwrite cloud NODE_OPTIONS=--max-old-space-size=4096
For Appwrite Cloud, you can set environment variables in your project settings: Go to your project dashboard Navigate to Settings → Environment Variables Add: NODE_OPTIONS with value --max-old-space-size=4096 If you need help setting this up or want me to take a closer look at your project, feel free to DM me I can walk you through it! <@280781630400888843>
Recommended threads
- Error With iOS Apps
I keep getting the below errors for my flutter app. The clients are registered and have been. This wasn't an issue a few hours ago. AppwriteException: AppwriteE...
- Backup policies think im on free tier
Cant create more than one policy as im told to ugprade, when clicking upgrade im taken to the upgrade page which confirms im already on pro
- Cant get rid of "get started"
Not that important, but annoying. No matter what I do I cant get the "Get started" to go away, ive added a bunch of web platforms and its just stuck.