When trying to make a help menu for my discord bot everything kind of broke and I keep getting this error.
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF7F4AE7A1F v8::internal::CodeObjectRegistry::~CodeObjectRegistry+114207
2: 00007FF7F4A76096 DSA_meth_get_flags+65542
3: 00007FF7F4A76F4D node::OnFatalError+301
4: 00007FF7F53AB2CE v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF7F53958AD v8::SharedArrayBuffer::Externalize+781
6: 00007FF7F5238C7C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1468
7: 00007FF7F5245929 v8::internal::Heap::PublishPendingAllocations+1129
8: 00007FF7F52428FA v8::internal::Heap::PageFlagsAreConsistent+2842
9: 00007FF7F5235559 v8::internal::Heap::CollectGarbage+2137
10: 00007FF7F5233710 v8::internal::Heap::AllocateExternalBackingStore+2000
11: 00007FF7F5258296 v8::internal::Factory::NewFillerObject+214
12: 00007FF7F4F8A765 v8::internal::DateCache::Weekday+1797
13: 00007FF7F5438FC1 v8::internal::SetupIsolateDelegate::SetupHeap+494417
14: 00007FF7F5439EC9 v8::internal::SetupIsolateDelegate::SetupHeap+498265
15: 000002A397CB44C7
[nodemon] app crashed - waiting for file changes before starting...
I'm making it with discord.js and I have looked all over the internet and can't find anything that has solved these issues. Does anyone know how to solve this issue? Please and thank you.