web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

JavaScript heap out of memory when consuming our ecommerce's npm package

(2) ShareShare
ReportReport
Posted on by 16
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!
Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 839

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 839

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 228 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans