Hi experts,
We have some basic custom modules for e-commerce. As an ISV, we wanted to deliver it to customers/partners via an npm package.
When running the command "yarn start" within our development solution, our modules work fine, no issues. But, when consuming our npm package within a clean Msdyn365.Commerce.Online project (from Microsoft's github), I get the following error:
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF66AF1158F v8::internal::CodeObjectRegistry::~CodeObjectRegistry+122159
2: 00007FF66AE9B326 DSA_meth_get_flags+64118
3: 00007FF66AE9C3A2 DSA_meth_get_flags+68338
4: 00007FF66B7D2374 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 00007FF66B7BC93D v8::SharedArrayBuffer::Externalize+781
6: 00007FF66B65FEBC v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1468
7: 00007FF66B65CFD4 v8::internal::Heap::CollectGarbage+4244
8: 00007FF66B65A950 v8::internal::Heap::AllocateExternalBackingStore+2000
9: 00007FF66B67F4D6 v8::internal::Factory::NewFillerObject+214
10: 00007FF66B3B24D5 v8::internal::DateCache::Weekday+1797
11: 00007FF66B860051 v8::internal::SetupIsolateDelegate::SetupHeap+494417
12: 00007FF66B860FC3 v8::internal::SetupIsolateDelegate::SetupHeap+498371
13: 0000023C2A6795ED
I already tried with node 16 and 18, same error.
I also tried to use max_old_space_size=8192, same error.
I read on this
faq that wrong imports can cause this issue, but I don't undertand exactly how to handle it, since I am a F&O developer.
Can you please help to understand on how to solve this issue?
Thanks in advance!