FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

I am getting this error like 20 seconds after the bot is on but 2 days ago it was working fine and i have not added any new commands to it, and i have done some research and some people say it has to do with your pc and i have 16gb of ram but when i host it on heroku i am still getting this error so if anyone can help please help me.
7 Replies
d.js toolkit
d.js toolkit13mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Team Pu1s3
Team Pu1s3OP13mo ago
No description
Syjalo
Syjalo13mo ago
How many servers your bot is in? Do you use sharding? How many shards do you have? Show your client options.
Team Pu1s3
Team Pu1s3OP13mo ago
bots in 400 servers and dk what sharding is how would i find the loop? if there is one
Priyanshu.
Priyanshu.13mo ago
did you fixed it coz i'm having the same problem
Team Pu1s3
Team Pu1s3OP13mo ago
no i just made a new source code for the bot and moved my commands to it and os far that has done the trick
Priyanshu.
Priyanshu.13mo ago
Didn't you tried to compare the code Like what fixed your problem
Want results from more Discord servers?
Add your server