Posted 9 October 2023, 4:16 pm EST
Hi I am not able to build a simple react project with spreadJS designer and getting heap size error when I run “npm run build”. Problem can be replicated with attached files.
Environment details:
Spreadjs:16.1.0
node:18.17.1
React:18.2.0
Getting below error on running “npm run build”
[code]PS C:\hello1\spreadjs> npm run build
spreadjs-re@0.1.0 build
react-scripts build
Creating an optimized production build…
<— Last few GCs —>
[9772:00000193FAE55830] 166132 ms: Mark-sweep (reduce) 2045.5 (2079.7) → 2044.8 (2080.0) MB, 3291.1 / 0.0 ms (average mu = 0.142, current mu = 0.002) allocation failure; scavenge might not succeed
[9772:00000193FAE55830] 169285 ms: Mark-sweep (reduce) 2045.8 (2080.0) → 2045.1 (2080.2) MB, 3148.7 / 0.0 ms (average mu = 0.076, current mu = 0.001) allocation failure; scavenge might not succeed
<— JS stacktrace —>
1: 00007FF74AE307BF node_api_throw_syntax_error+175823
2: 00007FF74ADB5796 DSA_meth_get_flags+59654
3: 00007FF74ADB7480 DSA_meth_get_flags+67056
4: 00007FF74B85E944 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 00007FF74B849CD2 v8::Isolate::Exit+674
6: 00007FF74B6CBB8C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
7: 00007FF74B6C8DAB v8::internal::Heap::CollectGarbage+3963
8: 00007FF74B6DEFE3 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
9: 00007FF74B6DF88D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
10: 00007FF74B6EF050 v8::internal::NewFillerObject+816
11: 00007FF74B3DFF95 v8::internal::DateCache::Weekday+1349
12: 00007FF74B8FBE71 v8::internal::SetupIsolateDelegate::SetupHeap+558193
13: 00007FF6CC415877[/code]
Our production deployment is blocked because of this issue . can you please help